-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
Description
In order to better support the TypeScript community and have excellent API documentation, we would like to have great JSDoc comments for this library.
From the JSDoc comments we can extract .d.ts files, which will improve the experience of TypeScript users.
However, we are using a construction that is yet unsupported by TypeScript: microsoft/TypeScript#33207
Basically, tsc doesn't understand this construction and doesn't support JSDoc's @interface annotation
/** @interface */
function Encoder() {}
Encoder.prototype = {
handler: function(stream, code_point) {}
};A solution could be spread across several pull requests:
- Copy all the documentation from [nise] - Types definition for
nisepackage (https://github.com/sinonjs/nise). DefinitelyTyped/DefinitelyTyped#30407 into this project as JSDoc comments - Refactor the code to use expressions that can be documented with
JSDocand also understood bytsc - Use
tscto generate.d.tsfiles
Reactions are currently unavailable