-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
In order to offer users proper Typescript support, two options are available:
- hand crafted
.d.tsfiles for each published package - porting current
.jssource code to Typescript (with incremental build and automatic generation of source maps and.d.tsfiles
First option might be faster but implies to maintain .js source and .d.ts in sync as code base evolve.
Second option would take longer to achieve but should be easier to maintain in the long run. Caveats is that source code no longer is JavaScript but Typescript. Final code being transpiled (using Typescript or Babel) thus making fine control of the code (slightly) less possible. On the other hand, source Typescript code can benefit from the latest ESnext syntax while still producing JavaScript code compatible with the minimal supported version(es5, es2015, etc.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels