diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-06-10 15:26:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 15:26:10 +0200 |
commit | 6091ea098a86cafb38aed3228a64ad96a046c817 (patch) | |
tree | 1533eb7872db17abe2d88a8db32c4719d403ba4d /extensions/file/lib.deno_file.d.ts | |
parent | fb20a6af761c8eb61a046b4c70e28061923e36ca (diff) |
refactor: merge deno_file crate into deno_web (#10914)
This refactor makes it so there's one less crate to publish on each release.
Diffstat (limited to 'extensions/file/lib.deno_file.d.ts')
-rw-r--r-- | extensions/file/lib.deno_file.d.ts | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/extensions/file/lib.deno_file.d.ts b/extensions/file/lib.deno_file.d.ts deleted file mode 100644 index a907c3f50..000000000 --- a/extensions/file/lib.deno_file.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. - -/// <reference no-default-lib="true" /> -/// <reference lib="esnext" /> - -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<Uint8Array>; - 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; -} |