This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-file.git
The following commit(s) were added to refs/heads/master by this push:
new 5353b84 CB-13960: fix FileWriter.write argument type definition for
typescript (#231)
5353b84 is described below
commit 5353b847270d55f8caedfc992393137514c59992
Author: vldmr-bus <[email protected]>
AuthorDate: Mon Oct 1 15:23:39 2018 -0500
CB-13960: fix FileWriter.write argument type definition for typescript
(#231)
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 c748e3d..40f1a82 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]