From 4a295b5fc23f9713d39666df2aa8f19ec52ad31f Mon Sep 17 00:00:00 2001 From: yinz Date: Wed, 27 Mar 2019 05:55:05 +0800 Subject: [PATCH] Add`Blob` & `File` type for `readFile` api (#34215) * add Blob & File type for `readFile` api * Blob -> File * style: use single quotes --- types/bro-fs/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/bro-fs/index.d.ts b/types/bro-fs/index.d.ts index e0d11cddbe..e2d53cb8a1 100644 --- a/types/bro-fs/index.d.ts +++ b/types/bro-fs/index.d.ts @@ -44,6 +44,8 @@ export function isSupported(): boolean; export function mkdir(path: string): Promise; export function readdir(path: string | DirectoryEntry, options?: {deep?: boolean}): Promise; export function readFile(path: string | FileEntry, options: {type: 'ArrayBuffer'}): Promise; +export function readFile(path: string | FileEntry, options: {type: 'Blob'}): Promise; +export function readFile(path: string | FileEntry, options: {type: 'File'}): Promise; export function readFile(path: string | FileEntry, options?: {type?: TextType}): Promise; export function rename(oldPath: string | FileEntry, newPath: string, options?: {create?: boolean}): Promise; export function rmdir(path: string | DirectoryEntry): Promise;