alepha
Version:
Easy-to-use modern TypeScript framework for building many kind of applications.
13 lines (10 loc) • 305 B
text/typescript
import { createContext } from "react";
import type { ErrorHandler } from "../primitives/$page.ts";
export interface RouterLayerContextValue {
index: number;
path: string;
onError: ErrorHandler;
}
export const RouterLayerContext = createContext<
RouterLayerContextValue | undefined
>(undefined);