mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
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.
12 lines
342 B
TypeScript
12 lines
342 B
TypeScript
import { createContext } from 'react'
|
|
|
|
// Make sure the shape of the default value passed to
|
|
// createContext matches the shape that the consumers expect!
|
|
export const StepHikeContext = createContext<{
|
|
activeStep: { titleId: string; step: number } | undefined
|
|
steps: any[] | undefined
|
|
}>({
|
|
activeStep: undefined,
|
|
steps: undefined,
|
|
})
|