Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
40
node_modules/next/dist/shared/lib/router/utils/prepare-destination.d.ts
generated
vendored
Normal file
40
node_modules/next/dist/shared/lib/router/utils/prepare-destination.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import type { IncomingMessage } from 'http';
|
||||
import type { NextParsedUrlQuery } from '../../../../server/request-meta';
|
||||
import type { RouteHas } from '../../../../lib/load-custom-routes';
|
||||
import type { BaseNextRequest } from '../../../../server/base-http';
|
||||
import type { Params } from '../../../../server/request/params';
|
||||
export declare function matchHas(req: BaseNextRequest | IncomingMessage, query: Params, has?: RouteHas[], missing?: RouteHas[]): false | Params;
|
||||
export declare function compileNonPath(value: string, params: Params): string;
|
||||
export declare function parseDestination(args: {
|
||||
destination: string;
|
||||
params: Readonly<Params>;
|
||||
query: Readonly<NextParsedUrlQuery>;
|
||||
}): {
|
||||
pathname: string;
|
||||
hostname: string | null | undefined;
|
||||
href: string;
|
||||
hash: string;
|
||||
port?: string | null;
|
||||
protocol?: string | null;
|
||||
query: import("querystring").ParsedUrlQuery;
|
||||
search: string;
|
||||
};
|
||||
export declare function prepareDestination(args: {
|
||||
appendParamsToQuery: boolean;
|
||||
destination: string;
|
||||
params: Params;
|
||||
query: NextParsedUrlQuery;
|
||||
}): {
|
||||
newUrl: string;
|
||||
destQuery: import("querystring").ParsedUrlQuery;
|
||||
parsedDestination: {
|
||||
pathname: string;
|
||||
hostname: string | null | undefined;
|
||||
href: string;
|
||||
hash: string;
|
||||
port?: string | null;
|
||||
protocol?: string | null;
|
||||
query: import("querystring").ParsedUrlQuery;
|
||||
search: string;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue