create project
This commit is contained in:
48
kitabcitab/node_modules/next/dist/server/request-meta.d.ts
generated
vendored
Normal file
48
kitabcitab/node_modules/next/dist/server/request-meta.d.ts
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import type { IncomingMessage } from 'http';
|
||||
import type { ParsedUrlQuery } from 'querystring';
|
||||
import type { UrlWithParsedQuery } from 'url';
|
||||
import type { BaseNextRequest } from './base-http';
|
||||
import type { ClonableBody } from './body-streams';
|
||||
export declare const NEXT_REQUEST_META: unique symbol;
|
||||
export declare type NextIncomingMessage = (BaseNextRequest | IncomingMessage) & {
|
||||
[NEXT_REQUEST_META]?: RequestMeta;
|
||||
};
|
||||
export interface RequestMeta {
|
||||
__NEXT_INIT_QUERY?: ParsedUrlQuery;
|
||||
__NEXT_INIT_URL?: string;
|
||||
__NEXT_CLONABLE_BODY?: ClonableBody;
|
||||
__nextHadTrailingSlash?: boolean;
|
||||
__nextIsLocaleDomain?: boolean;
|
||||
__nextStrippedLocale?: boolean;
|
||||
_nextDidRewrite?: boolean;
|
||||
_nextHadBasePath?: boolean;
|
||||
_nextRewroteUrl?: string;
|
||||
_nextMiddlewareCookie?: string[];
|
||||
_protocol?: string;
|
||||
_nextDataNormalizing?: boolean;
|
||||
}
|
||||
export declare function getRequestMeta(req: NextIncomingMessage, key?: undefined): RequestMeta;
|
||||
export declare function getRequestMeta<K extends keyof RequestMeta>(req: NextIncomingMessage, key: K): RequestMeta[K];
|
||||
export declare function setRequestMeta(req: NextIncomingMessage, meta: RequestMeta): RequestMeta;
|
||||
export declare function addRequestMeta<K extends keyof RequestMeta>(request: NextIncomingMessage, key: K, value: RequestMeta[K]): RequestMeta;
|
||||
declare type NextQueryMetadata = {
|
||||
__nextNotFoundSrcPage?: string;
|
||||
__nextDefaultLocale?: string;
|
||||
__nextFallback?: 'true';
|
||||
__nextLocale?: string;
|
||||
__nextSsgPath?: string;
|
||||
_nextBubbleNoFallback?: '1';
|
||||
__nextDataReq?: '1';
|
||||
__nextCustomErrorRender?: '1';
|
||||
};
|
||||
export declare type NextParsedUrlQuery = ParsedUrlQuery & NextQueryMetadata & {
|
||||
amp?: '1';
|
||||
};
|
||||
export interface NextUrlWithParsedQuery extends UrlWithParsedQuery {
|
||||
query: NextParsedUrlQuery;
|
||||
}
|
||||
export declare function getNextInternalQuery(query: NextParsedUrlQuery): NextQueryMetadata;
|
||||
export {};
|
||||
Reference in New Issue
Block a user