NeahNew/node_modules/next/dist/client/components/segment-cache-impl/cache-key.d.ts
2025-05-03 14:17:46 +02:00

14 lines
509 B
TypeScript

type Opaque<K, T> = T & {
__brand: K;
};
export type NormalizedHref = Opaque<'NormalizedHref', string>;
export type NormalizedSearch = Opaque<'NormalizedSearch', string>;
export type NormalizedNextUrl = Opaque<'NormalizedNextUrl', string>;
export type RouteCacheKey = Opaque<'RouteCacheKey', {
href: NormalizedHref;
search: NormalizedSearch;
nextUrl: NormalizedNextUrl | null;
}>;
export declare function createCacheKey(originalHref: string, nextUrl: string | null): RouteCacheKey;
export {};