0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/op_crates/fetch/internal.d.ts
Luca Casonato 353e79c796
chore: align FormData to spec (#10169)
This PR aligns `FormData` to spec. All WPT tests are passing.
2021-04-14 22:49:16 +02:00

36 lines
943 B
TypeScript

// 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;
};
declare var formData: {
FormData: typeof FormData;
encodeFormData(formdata: FormData): {
body: Uint8Array;
contentType: string;
};
parseFormData(body: Uint8Array, boundary: string | undefined): FormData;
};
declare var streams: {
ReadableStream: typeof ReadableStream;
isReadableStreamDisturbed(stream: ReadableStream): boolean;
};
}
}