@foxpage/foxpage-types
Version:
foxpage sdk types
9 lines (8 loc) • 327 B
TypeScript
import { Content } from '../content';
import { Context } from '../context';
import { Route } from '../manager/router';
export interface FoxpageRouterRegisterHooks {
registerRouter?: () => Promise<Route>;
beforeRouteMatch?: () => Promise<Content>;
afterRouteMatch?: (ctx: Context) => Promise<Record<string, any>>;
}