diff options
| author | Luca Casonato <lucacasonato@yahoo.com> | 2021-04-06 12:55:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-06 12:55:05 +0200 |
| commit | 00e63306cbcc295a87ba662f9f63311a3c6c49ce (patch) | |
| tree | 88020a85a0f1d64803841386d2c5711b7ee008dc /op_crates/fetch/lib.deno_fetch.d.ts | |
| parent | ff5d072702aee52882787ea85dd73573a8f8f316 (diff) | |
refactor: add deno_file op crate (#10019)
Also enables WPT for FileReader.
Diffstat (limited to 'op_crates/fetch/lib.deno_fetch.d.ts')
| -rw-r--r-- | op_crates/fetch/lib.deno_fetch.d.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/op_crates/fetch/lib.deno_fetch.d.ts b/op_crates/fetch/lib.deno_fetch.d.ts index 7d06fe691..af21d8c44 100644 --- a/op_crates/fetch/lib.deno_fetch.d.ts +++ b/op_crates/fetch/lib.deno_fetch.d.ts @@ -287,42 +287,6 @@ interface TransformStreamDefaultControllerTransformCallback<I, O> { ): void | PromiseLike<void>; } -type BlobPart = BufferSource | Blob | string; - -interface BlobPropertyBag { - type?: string; - endings?: "transparent" | "native"; -} - -/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */ -declare class Blob { - constructor(blobParts?: BlobPart[], options?: BlobPropertyBag); - - readonly size: number; - readonly type: string; - arrayBuffer(): Promise<ArrayBuffer>; - slice(start?: number, end?: number, contentType?: string): Blob; - stream(): ReadableStream; - text(): Promise<string>; -} - -interface FilePropertyBag extends BlobPropertyBag { - lastModified?: number; -} - -/** Provides information about files and allows JavaScript in a web page to - * access their content. */ -declare class File extends Blob { - constructor( - fileBits: BlobPart[], - fileName: string, - options?: FilePropertyBag, - ); - - readonly lastModified: number; - readonly name: string; -} - type FormDataEntryValue = File | string; /** Provides a way to easily construct a set of key/value pairs representing |
