Generated API snapshot
@askrjs/askr/router
Exports from the declarations published in @askrjs/askr 0.0.59. Signatures are generated from the installed artifact.
@askrjs/askr/router0.0.59
Exports
This entrypoint publishes 85 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
AccessDecisiontype
AccessDecision: anyAccessDenyDecisiontype
AccessDenyDecision: anyAccessRedirectDecisiontype
AccessRedirectDecision: anyallowtype
allow: () => AccessAllowDecisionAuthContexttype
AuthContext: anyAuthRequirementtype
AuthRequirement: anyclearRoutestype
clearRoutes: () => voidcreateRouteRegistrytype
createRouteRegistry: (definition: RouteDefinition, options?: RegisterRoutesOptions) => RouteRegistrycurrentAuthtype
currentAuth: () => AuthContext$1currentRoutetype
currentRoute: <TParams extends RouteParams = RouteParams>() => RouteSnapshot<TParams>defertype
defer: <T>(promise: PromiseLike<T>) => Deferred<T>Deferredtype
Deferred: anyDeferredStatetype
DeferredState: anydenytype
deny: (status: AccessDenyStatus) => AccessDenyDecisionfallbacktype
fallback: (Component: RouteComponent) => voidforbiddentype
forbidden: () => AccessDenyDecisiongetManifesttype
getManifest: () => RouteManifestgetRoutestype
getRoutes: () => Route[]grouptype
group: (options: GroupHelperOptions, fn: RouteDefinition) => voidGroupHelperOptionstype
GroupHelperOptions: anyHistoryScrollBehaviortype
HistoryScrollBehavior: anyindextype
index: (Component: RouteComponent, options?: RouteOptions) => voidisDeferredtype
isDeferred: <T = unknown>(value: unknown) => value is Deferred<T>LayoutScopeRecordtype
LayoutScopeRecord: anylazytype
lazy: <TComponent extends AnyRouteComponent>(factory: () => Promise<{ default: TComponent; } | TComponent>) => LazyRouteComponent<TComponent>LazyRouteComponenttype
LazyRouteComponent: anyLinktype
Link: ({ href: suppliedHref, to, class: className, children, rel, target, "aria-current": ariaCurrent, "aria-label": ariaLabel, ...rest }: LinkProps) => JSXElementLinkPropstype
LinkProps: anynavigatetype
navigate: (path: string, options?: NavigateOptions) => voidNavigateOptionstype
NavigateOptions: anyNavigationScrollBehaviortype
NavigationScrollBehavior: anynotFoundtype
notFound: () => AccessDenyDecisionOutlettype
Outlet: () => JSXElementpagetype
page: { <const TPath extends string>(path: TPath, Component: RouteComponent<RoutePathParams<TPath>>, fn: RouteDefinition): void; <const TPath extends string, TComponent extends AnyRouteComponent>(path: TPath, Component: CompatibleRouteComponent<TPath, TComponent>, fn: RouteDefinition): void; <const TPath extends string>(path: TPath, Component: RouteComponent<RoutePathParams<TPath>>, options: PageHelperOptions, fn: RouteDefinition): void; <const TPath extends string, TComponent extends AnyRouteComponent>(path: TPath, Component: CompatibleRouteComponent<TPath, TComponent>, options: PageHelperOptions, fn: RouteDefinition): void; }PageHelperOptionstype
PageHelperOptions: anyPageScopeRecordtype
PageScopeRecord: anyParsedSegmenttype
ParsedSegment: anyreconcileRouteMetatype
reconcileRouteMeta: (meta: Readonly<RouteMeta>, target?: Document) => voidredirecttype
redirect: (to: string, init?: { status?: AccessRedirectStatus; replace?: boolean; }) => AccessRedirectDecisionregisterRoutestype
registerRoutes: (definition: RouteDefinition, options?: RegisterRoutesOptions) => voidRegisterRoutesOptionstype
RegisterRoutesOptions: anyResolvetype
Resolve: <T>(props: ResolveProps<T>) => JSXElementresolveDeferredValuestype
resolveDeferredValues: <T>(input: T, signal?: AbortSignal) => Promise<T>ResolvePropstype
ResolveProps: anyresolveRouteMetatype
resolveRouteMeta: (record: RouteRecord, context: RouteContext) => Promise<Readonly<RouteMeta>>resolveRouteRequesttype
resolveRouteRequest: (target: string, options?: RouteRequestOptions) => RouteRequestResult | Promise<RouteRequestResult>routetype
route: { <const TPath extends string, const TSearchSchema extends ObjectSchema<RouteSearch> | undefined = undefined>(path: TPath, Component: RouteComponent<RoutePathParams<TPath>>, options?: RouteOptions<RoutePathParams<TPath>, TSearchSchema>): RouteRef<RoutePathParams<TPath>, RouteRefSearch<TSearchSchema>>; <const TPath extends string, TComponent extends AnyRouteComponent, const TSearchSchema extends ObjectSchema<RouteSearch> | undefined = undefined>(path: TPath, Component: CompatibleRouteComponent<TPath, TComponent>, options?: RouteOptionsForComponent<TPath, TComponent, TSearchSchema>): RouteRef<RoutePathParams<TPath>, RouteRefSearch<TSearchSchema>>; }Routetype
Route: anyRouteAuthOptionstype
RouteAuthOptions: anyRouteAuthResolvertype
RouteAuthResolver: anyRouteComponenttype
RouteComponent: anyRouteContexttype
RouteContext: anyrouteDatatype
routeData: <T>() => TRouteDefinitiontype
RouteDefinition: anyRouteDestinationtype
RouteDestination: anyRouteHandlertype
RouteHandler: anyRouteManifesttype
RouteManifest: anyRouteMatchtype
RouteMatch: anyRouteMetatype
RouteMeta: anyRouteMetaSourcetype
RouteMetaSource: anyRouteModetype
RouteMode: anyRouteOptionstype
RouteOptions: anyRouteParamstype
RouteParams: anyRoutePathParamstype
RoutePathParams: anyRoutePolicytype
RoutePolicy: anyRouteQuerytype
RouteQuery: anyRouteQueryParamInputtype
RouteQueryParamInput: anyRouteQueryParamValuetype
RouteQueryParamValue: anyRouteQueryUpdatertype
RouteQueryUpdater: anyRouteQueryUpdatestype
RouteQueryUpdates: anyRouteRecordtype
RouteRecord: anyRouteReftype
RouteRef: anyRouteRegistrytype
RouteRegistry: anyRouteRenderResulttype
RouteRenderResult: anyRouteRequestOptionstype
RouteRequestOptions: anyRouteRequestResulttype
RouteRequestResult: anyRouteSearchtype
RouteSearch: anyRouteSearchValuetype
RouteSearchValue: anyRouteSnapshottype
RouteSnapshot: anyScrollRestorationOptionstype
ScrollRestorationOptions: anyserializeRouteMetatype
serializeRouteMeta: (meta: RouteMeta) => stringtotype
to: <TParams extends RouteParams, TSearch extends RouteSearch = RouteSearch>(route: RouteRef<TParams, TSearch>, params: TParams, search?: TSearch) => RouteDestinationunauthorizedtype
unauthorized: () => AccessDenyDecisionupdateRouteQuerytype
updateRouteQuery: (updates: RouteQueryUpdates | RouteQueryUpdater, options?: UpdateRouteQueryOptions) => voidUpdateRouteQueryOptionstype
UpdateRouteQueryOptions: any