diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-04-14 22:49:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 22:49:16 +0200 |
commit | 353e79c796efc6c6aa328abb4d7cef5e642944af (patch) | |
tree | 5ae6d1778c0a1dfa53ac62e409d6da8cdb31285f /op_crates/fetch/internal.d.ts | |
parent | 5214acd3d9dec56ee159544f0f6bf9834a62c097 (diff) |
chore: align FormData to spec (#10169)
This PR aligns `FormData` to spec. All WPT tests are passing.
Diffstat (limited to 'op_crates/fetch/internal.d.ts')
-rw-r--r-- | op_crates/fetch/internal.d.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/op_crates/fetch/internal.d.ts b/op_crates/fetch/internal.d.ts index e02bc6ed2..3206008c5 100644 --- a/op_crates/fetch/internal.d.ts +++ b/op_crates/fetch/internal.d.ts @@ -19,6 +19,15 @@ declare namespace globalThis { 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; |