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

Typescript: FileWriter write argument definition shall include type string

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-file
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: