Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13960

Typescript: FileWriter write argument definition shall include type string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-file
    • None

    Description

      www\FileWriter.js has the following annotation on write method:

      @param data text or blob to be writte

      But types\index.d.ts has the following type definition:

          /**
           * Write the supplied data to the file at position.
           * @param {Blob} data The blob to write.
           */
          write(data: Blob): void;

      Shall be as follows:

          /**
           * Write the supplied data to the file at position.
           * @param {Blob|string} data The blob to write.
           */
          write(data: Blob|string): void;

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vldmr-bus Vladimir
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: