docusign-esign-node-client icon indicating copy to clipboard operation
docusign-esign-node-client copied to clipboard

Document process for generation of typescript types

Open maxcan opened this issue 4 years ago • 6 comments

While included, official type definitions would be ideal, since they aren't on the roadmap, perhaps we can add instructions from #116 to at least allow typescript consumers of the client a good starting place for putting in type annotations.

  1. go to https://editor.swagger.io and choose File > Import URL and enter https://raw.githubusercontent.com/docusign/eSign-OpenAPI-Specification/master/esignature.rest.swagger-v2.1.json
  2. wait a few minutes for your browser to superheat your CPU and malloc itself 128GB of ram because javascript
  3. click Generate Client > typescript-<node | jquery | fetch etc> and download the result
  4. If you just want the types, delete every definition except for the export interface definitions

maxcan avatar May 23 '20 19:05 maxcan

Thank you @maxcan , I have submitted DEVDOCS-2771 to have this suggestion evaluated by our product development staff.

LarryKlugerDS avatar Jun 07 '20 08:06 LarryKlugerDS

So over a year later, what is the status now?

jchull avatar Sep 08 '21 15:09 jchull

Thanks for the follow-up. An update is on the way, please see the next comment from our SDK product manager.

LarryKlugerDS avatar Sep 11 '21 19:09 LarryKlugerDS

Hi @jchull, thanks for the follow up. We have continued to see interest in better Typescript support, and are looking into options at this time. I can't provide specifics but this is something we have come back to recently.

jglassenberg avatar Sep 11 '21 19:09 jglassenberg

Meanwhile in 2024...

jtmueller avatar Apr 03 '24 19:04 jtmueller