chore(docs): turn on strictNullChecks (#36180)

strictNullChecks was off for docs, which lets errors slip through and
leads to incorrect required/optional typing on Zod-inferred types. This
PR enables strictNullChecks and fixes all the existing violations.
This commit is contained in:
Charis authored and GitHub committed 2025-06-04 17:05:37 -04:00
1 parent 5862505164
commit cf3ecc93eb
70 files changed
+487 -531

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ const StickyHeader: FC<StickyHeader> = ({ icon, ...props }) => {
// we're serving search bots a different file (/crawlers/[...slug])
// and need to modify content to suit that
const isCrawlerPage = router.route.includes('/crawlers/[...slug]')
const isCrawlerPage = router?.route.includes('/crawlers/[...slug]') || false
const { ref } = useInView({
threshold: 1,