Files
supabase/apps/docs/components/StepHike/StepHikeContext.tsx
Charis cf3ecc93eb 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.
2025-06-04 17:05:37 -04:00

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,
})