Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-110471

Improve type safety of ws calls

    XMLWordPrintable

    Details

      Description

      Problem: we are currently making API calls like this:

      ```

      this.ws.call('core.download', someparams).subscribe((result) => {
      
      }),

      ```

      none of the params are properly typed, and neither is the response.

      See if there is a way to make type safety here more stringient and force people to add types.

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                istepanovych Ievgen Stepanovych
                Reporter:
                istepanovych Ievgen Stepanovych
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: