UNPKG

@nimpl/getters

Version:

Implementation of server getters in React Server Components without switching to SSR in next.js

11 lines (10 loc) 552 B
export declare const normalizePathname: (pathname: string) => string; export declare const normalizePagePath: (pagePath: string) => string; export declare const parseSegments: (pagePathParts: string[], pathnameParts: string[]) => { [key: string]: string | string[]; }; export declare const normalizeInterceptingRoutes: (pageParts: string[]) => string[]; export declare const INVALID_PARSE: unique symbol; export declare const parseParams: (urlPathname: string, pagePath: string) => typeof INVALID_PARSE | { [key: string]: string | string[]; };