Skip to content

Commit 5353b84

Browse files
vldmr-busjanpio
authored andcommitted
CB-13960: fix FileWriter.write argument type definition for typescript (#231)
Fix FileWriter.write argument type definition for typescript
1 parent 6e7871b commit 5353b84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,9 @@ interface FileWriter extends FileSaver {
294294
length: number;
295295
/**
296296
* Write the supplied data to the file at position.
297-
* @param {Blob} data The blob to write.
297+
* @param {Blob|string} data The blob to write.
298298
*/
299-
write(data: Blob): void;
299+
write(data: Blob|string): void;
300300
/**
301301
* The file position at which the next write will occur.
302302
* @param offset If nonnegative, an absolute byte offset into the file.

0 commit comments

Comments
 (0)