2021-01-28 15:37:21 -05:00
|
|
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
|
|
|
|
|
|
// deno-lint-ignore-file no-explicit-any
|
|
|
|
|
|
|
|
/// <reference no-default-lib="true" />
|
|
|
|
/// <reference lib="esnext" />
|
|
|
|
|
|
|
|
declare namespace globalThis {
|
|
|
|
declare namespace __bootstrap {
|
|
|
|
declare var fetchUtil: {
|
|
|
|
requiredArguments(name: string, length: number, required: number): void;
|
|
|
|
};
|
|
|
|
|
|
|
|
declare var domIterable: {
|
|
|
|
DomIterableMixin(base: any, dataSymbol: symbol): any;
|
|
|
|
};
|
|
|
|
|
|
|
|
declare var headers: {
|
|
|
|
Headers: typeof Headers;
|
|
|
|
};
|
|
|
|
|
2021-02-04 09:05:36 -05:00
|
|
|
declare var file: {
|
2021-01-30 13:22:24 -05:00
|
|
|
Blob: typeof Blob & {
|
2021-02-04 09:05:36 -05:00
|
|
|
[globalThis.__bootstrap.file._byteSequence]: Uint8Array;
|
2021-01-30 13:22:24 -05:00
|
|
|
};
|
|
|
|
_byteSequence: unique symbol;
|
2021-02-04 09:05:36 -05:00
|
|
|
File: typeof File & {
|
|
|
|
[globalThis.__bootstrap.file._byteSequence]: Uint8Array;
|
|
|
|
};
|
2021-01-30 13:22:24 -05:00
|
|
|
};
|
|
|
|
|
2021-01-28 15:37:21 -05:00
|
|
|
declare var streams: {
|
|
|
|
ReadableStream: typeof ReadableStream;
|
|
|
|
isReadableStreamDisturbed(stream: ReadableStream): boolean;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|