diff --git a/components/Content.tsx b/components/Content.tsx index 08a176b..ae5096c 100644 --- a/components/Content.tsx +++ b/components/Content.tsx @@ -4,7 +4,7 @@ import sanitizeHtml from 'sanitize-html'; type AccountDetails = { id: string, // IMPORTANT: this is int64 so will overflow Javascript's number type acct: string, - followed_by: [string], // list of handles + followed_by: Array, // list of handles }; async function usernameToId(handle: string): Promise<{ id: number, domain: string }> { @@ -125,8 +125,8 @@ export function Content({ }) { const [follows, setfollows] = useState>([]); const [isLoading, setLoading] = useState(false); const [isDone, setDone] = useState(false); - const [domain, setDomain] = useState(); - const [[numLoaded, totalToLoad], setProgress] = useState([0, 0]); + const [domain, setDomain] = useState(""); + const [[numLoaded, totalToLoad], setProgress] = useState>([0, 0]); console.log(follows.length); diff --git a/components/FAQ.tsx b/components/FAQ.tsx index f4ebeca..f31e27c 100644 --- a/components/FAQ.tsx +++ b/components/FAQ.tsx @@ -29,7 +29,7 @@ export function FAQ({ }) { ; } -function FAQItem({ defaultSelected, title, children }) { +function FAQItem({ defaultSelected, title, children }: { defaultSelected?: boolean, title: string, children: React.ReactNode}) { const [selected, setSelected] = useState(defaultSelected); return (<>

diff --git a/tsconfig.json b/tsconfig.json index 99710e8..b8d5978 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, - "strict": true, + "strict": false, "forceConsistentCasingInFileNames": true, "noEmit": true, "esModuleInterop": true,