/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/draft-mode.d.ts (1925B)
import type { DraftModeProvider } from '../async-storage/draft-mode-provider'; /** * In this version of Next.js `draftMode()` returns a Promise however you can still reference the properties of the underlying draftMode object * synchronously to facilitate migration. The `UnsafeUnwrappedDraftMode` type is added to your code by a codemod that attempts to automatically * updates callsites to reflect the new Promise return type. There are some cases where `draftMode()` cannot be automatically converted, namely * when it is used inside a synchronous function and we can't be sure the function can be made async automatically. In these cases we add an * explicit type case to `UnsafeUnwrappedDraftMode` to enable typescript to allow for the synchronous usage only where it is actually necessary. * * You should should update these callsites to either be async functions where the `draftMode()` value can be awaited or you should call `draftMode()` * from outside and await the return value before passing it into this function. * * You can find instances that require manual migration by searching for `UnsafeUnwrappedDraftMode` in your codebase or by search for a comment that * starts with `@next-codemod-error`. * * In a future version of Next.js `draftMode()` will only return a Promise and you will not be able to access the underlying draftMode object directly * without awaiting the return value first. When this change happens the type `UnsafeUnwrappedDraftMode` will be updated to reflect that is it no longer * usable. * * This type is marked deprecated to help identify it as target for refactoring away. * * @deprecated */ export type UnsafeUnwrappedDraftMode = DraftMode; export declare function draftMode(): Promise; declare class DraftMode { constructor(provider: null | DraftModeProvider); get isEnabled(): boolean; enable(): void; disable(): void; } export {};