Files
Webklar.com/node_modules/next/dist/compiled/@edge-runtime/primitives/fetch.d.ts
Basilosaurusrex f027651f9b main repo
2025-11-24 18:09:40 +01:00

27 lines
879 B
TypeScript

declare class Headers extends globalThis.Headers {
getAll?(key: 'set-cookie'): string[]
}
declare class Request extends globalThis.Request {
readonly headers: Headers
readonly duplex: string
}
declare class Response extends globalThis.Response {
readonly headers: Headers
static json(data: any, init?: ResponseInit): Response
}
type RequestInfo = string | Request | globalThis.Request
type RequestInit = globalThis.RequestInit
declare const fetchImplementation: (
info: RequestInfo,
init?: RequestInit
) => Promise<Response>
declare const FileConstructor: typeof File
declare const FormDataConstructor: typeof FormData
declare const WebSocketConstructor: typeof WebSocket
export { FileConstructor as File, FormDataConstructor as FormData, Headers, Request, RequestInfo, RequestInit, Response, WebSocketConstructor as WebSocket, fetchImplementation as fetch };