2e02204dc9
**TODO** - [x] Ensure [body-stream](https://github.com/kikobeats/next.js/blob/edge-runtime/packages/next/server/body-streams.ts) is up-to-date with https://github.com/vercel/edge-runtime/blob/main/packages/runtime/src/server/body-streams.ts Changelog: https://github.com/vercel/edge-runtime/releases/tag/edge-runtime%401.1.0-beta.33
14 lines
706 B
TypeScript
14 lines
706 B
TypeScript
declare const AbortControllerConstructor: typeof AbortController
|
|
|
|
declare const DOMExceptionConstructor: typeof DOMException
|
|
|
|
declare var AbortSignal: {
|
|
prototype: typeof AbortSignal
|
|
new (): typeof AbortSignal
|
|
/** Returns an AbortSignal instance which will be aborted in milliseconds milliseconds. Its abort reason will be set to a "TimeoutError" DOMException. */
|
|
timeout(milliseconds: number): AbortSignal
|
|
/** Returns an AbortSignal instance whose abort reason is set to reason if not undefined; otherwise to an "AbortError" DOMException. */
|
|
abort(reason?: string): AbortSignal
|
|
}
|
|
|
|
export { AbortControllerConstructor as AbortController, AbortSignal, DOMExceptionConstructor as DOMException };
|