File size: 509 Bytes
fea495a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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 {};
|