mirror of
https://github.com/supabase/supabase.git
synced 2026-06-20 15:26:07 +08:00
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:
@@ -3,7 +3,7 @@
|
||||
import { createContext, useContext } from 'react'
|
||||
|
||||
interface ContextProps {
|
||||
activeRefItem: string
|
||||
activeRefItem: string | undefined
|
||||
setActiveRefItem: (x: string) => void
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ interface Provider extends ContextProps {
|
||||
// createContext matches the shape that the consumers expect!
|
||||
const NavMenuContext = createContext<ContextProps>({
|
||||
activeRefItem: undefined,
|
||||
setActiveRefItem: undefined,
|
||||
setActiveRefItem: () => {},
|
||||
})
|
||||
|
||||
export const NavigationMenuContextProvider = (props: Provider) => {
|
||||
|
||||
Reference in New Issue
Block a user