Generate type definitions from source files #381
Labels
documentation
Improvements or additions to documentation
help-wanted
External contributions welcome
types
Anything regarding Typescript
We are currently maintaining the type defeinitons in index.d.ts by hand and relying heavily on many interfaces/types provided by adding
/// <reference lib="dom" />
.Since the implementation differs in some significant ways, we need to ideally get rid of the reference.
It would be way better to generate them from our source files, so they stay in sync.
I already did multiple attempts on this, but never succeeded:
lib/index.js
doesn't give any output, when running against the other modules, many properties are put into the global scope. It looks like we would need to add way more tags for JSDoc to properly know the "hirarchy" of things, like modules, prototype members, etc.tsdoc
since it relies on the typescript compiler.Any ideas, relevant information or experience is welcome to bring this topic forward.
The text was updated successfully, but these errors were encountered: