Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Resolved conflicts by taking GitHub versions for: - .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml Kept deploy.sh updated to: - Pull from GitHub (primary source) - Push to Gitea (push-mirror) - Build from site/ directory (GitHub structure) Co-Authored-By: Paperclip <noreply@paperclip.ing>
14 lines
1.2 KiB
TypeScript
14 lines
1.2 KiB
TypeScript
import type { DynamicParamTypesShort } from '../shared/lib/app-router-types';
|
|
import type { NormalizedPathname, NormalizedSearch } from './components/segment-cache/cache-key';
|
|
import type { RSCResponse } from './components/router-reducer/fetch-server-response';
|
|
import type { ParsedUrlQuery } from 'querystring';
|
|
export type RouteParamValue = string | Array<string> | null;
|
|
export declare function getRenderedSearch(response: RSCResponse<unknown> | Response): NormalizedSearch;
|
|
export declare function getRenderedPathname(response: RSCResponse<unknown> | Response): NormalizedPathname;
|
|
export declare function parseDynamicParamFromURLPart(paramType: DynamicParamTypesShort, pathnameParts: Array<string>, partIndex: number): RouteParamValue;
|
|
export declare function doesStaticSegmentAppearInURL(segment: string): boolean;
|
|
export declare function getCacheKeyForDynamicParam(paramValue: RouteParamValue, renderedSearch: NormalizedSearch): string;
|
|
export declare function urlToUrlWithoutFlightMarker(url: URL): URL;
|
|
export declare function getParamValueFromCacheKey(paramCacheKey: string, paramType: DynamicParamTypesShort): string | string[];
|
|
export declare function urlSearchParamsToParsedUrlQuery(searchParams: URLSearchParams): ParsedUrlQuery;
|