UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

17 lines 527 B
//#region src/types/router.d.ts type RoutingMode = 'path' | 'virtual'; /** * This type represents a generic router interface that Clerk relies on to interact with the host router. */ type ClerkHostRouter = { readonly mode: RoutingMode; readonly name: string; pathname: () => string; push: (path: string) => void; replace: (path: string) => void; searchParams: () => URLSearchParams; shallowPush: (path: string) => void; inferredBasePath?: () => string; }; //#endregion export { ClerkHostRouter, RoutingMode };