Azure / azure-functions-durable-js

JavaScript library for using the Durable Functions bindings
https://www.npmjs.com/package/durable-functions
MIT License
131 stars 47 forks source link

Switch to manual generation of DTS files #458

Closed hossam-nasr closed 1 year ago

hossam-nasr commented 1 year ago

Related to #352 and #416. Currently, the Durable SDK auto-generates its .d.ts from the source-code .ts files. We should switch to manually authoring our type declarations and our .d.ts files. This has multiple benefits:

hossam-nasr commented 1 year ago

Discussed some offline. As part of this, we should also try to switch from autogeneration of .d.ts files, to manual authoring of them. This should would help us become more intentional about which types we export, and also address #352. To do this, we should:

  1. Move all types/interfaces that we should expose publicly to the types directory (in normal .ts files)
  2. Separate class implementations from declarations, and move declarations to the types directory (also in .ts files)
  3. Switch to manual .d.ts file generation

Work for points 2 and 3 is already being done

Originally posted by @hossam-nasr in https://github.com/Azure/azure-functions-durable-js/issues/416#issuecomment-1414169027

hossam-nasr commented 1 year ago

Closed by #473