From 3478bcdde20ece8b67fdc1c6ed296a2e3543666e Mon Sep 17 00:00:00 2001 From: avdoninv Date: Thu, 8 Mar 2018 11:25:00 -0600 Subject: [PATCH] CB-13960: fix FileWriter.write argument type definition for typescript --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index c748e3da3..40f1a8224 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -294,9 +294,9 @@ interface FileWriter extends FileSaver { length: number; /** * Write the supplied data to the file at position. - * @param {Blob} data The blob to write. + * @param {Blob|string} data The blob to write. */ - write(data: Blob): void; + write(data: Blob|string): void; /** * The file position at which the next write will occur. * @param offset If nonnegative, an absolute byte offset into the file.