/opt/canhelp/node_modules/next/dist/server/request
NameSizeModeActions
connection.d.ts2540644editdlrm
connection.js71300644editdlrm
connection.js.map84140644editdlrm
cookies.d.ts17770644editdlrm
cookies.js206190644editdlrm
cookies.js.map314000644editdlrm
draft-mode.d.ts19250644editdlrm
draft-mode.js138650644editdlrm
draft-mode.js.map209660644editdlrm
fallback-params.d.ts1790644editdlrm
fallback-params.js13400644editdlrm
fallback-params.js.map21290644editdlrm
headers.d.ts23470644editdlrm
headers.js177520644editdlrm
headers.js.map267750644editdlrm
params.d.ts23130644editdlrm
params.js272210644editdlrm
params.js.map393300644editdlrm
pathname.d.ts2000644editdlrm
pathname.js43830644editdlrm
pathname.js.map61790644editdlrm
root-params.d.ts1880644editdlrm
root-params.js143720644editdlrm
root-params.js.map184820644editdlrm
search-params.d.ts24740644editdlrm
search-params.js330320644editdlrm
search-params.js.map474590644editdlrm
utils.d.ts4870644editdlrm
utils.js31660644editdlrm
utils.js.map31690644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/server/request/search-params.d.ts (2474B)
import type { WorkStore } from '../app-render/work-async-storage.external'; export type SearchParams = { [key: string]: string | string[] | undefined; }; /** * In this version of Next.js the `params` prop passed to Layouts, Pages, and other Segments is a Promise. * However to facilitate migration to this new Promise type you can currently still access params directly on the Promise instance passed to these Segments. * The `UnsafeUnwrappedSearchParams` type is available if you need to temporarily access the underlying params without first awaiting or `use`ing the Promise. * * In a future version of Next.js the `params` prop will be a plain Promise and this type will be removed. * * Typically instances of `params` can be updated automatically to be treated as a Promise by a codemod published alongside this Next.js version however if you * have not yet run the codemod of the codemod cannot detect certain instances of `params` usage you should first try to refactor your code to await `params`. * * If refactoring is not possible but you still want to be able to access params directly without typescript errors you can cast the params Promise to this type * * ```tsx * type Props = { searchParams: Promise<{ foo: string }> } * * export default async function Page(props: Props) { * const { searchParams } = (props.searchParams as unknown as UnsafeUnwrappedSearchParams) * return ... * } * ``` * * This type is marked deprecated to help identify it as target for refactoring away. * * @deprecated */ export type UnsafeUnwrappedSearchParams

= P extends Promise ? Omit : never; export declare function createSearchParamsFromClient(underlyingSearchParams: SearchParams, workStore: WorkStore): Promise; export declare const createServerSearchParamsForMetadata: typeof createServerSearchParamsForServerPage; export declare function createServerSearchParamsForServerPage(underlyingSearchParams: SearchParams, workStore: WorkStore): Promise; export declare function createPrerenderSearchParamsForClientPage(workStore: WorkStore): Promise; /** * This is a variation of `makeErroringExoticSearchParams` that always throws an * error on access, because accessing searchParams inside of `"use cache"` is * not allowed. */ export declare function makeErroringSearchParamsForUseCache(workStore: WorkStore): Promise;