You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can generate a .d.ts type generation file so users can have type completion and auto-suggestion benefits.
JSDoc is a bit painful to write than in TypeScript, but it's a perfect harmony for both parties; those who do not want to author in TypeScript & for people who want to have type definition support.
Actually, I have done most of the part, on pursuit of trying to understand the code, except for some confusions on this.from and this.to -- can't really understand which type they are supposed to be.
If you are interested, and help me understand the code a little bit, maybe I can submit a PR for it.
The text was updated successfully, but these errors were encountered:
This is related to #6.
TypeScript supports JSDoc annotations, so you could actually achieve this.
Some thing like this:
JSDoc code sample
You can generate a
.d.ts
type generation file so users can have type completion and auto-suggestion benefits.JSDoc is a bit painful to write than in TypeScript, but it's a perfect harmony for both parties; those who do not want to author in TypeScript & for people who want to have type definition support.
Actually, I have done most of the part, on pursuit of trying to understand the code, except for some confusions on
this.from
andthis.to
-- can't really understand which type they are supposed to be.If you are interested, and help me understand the code a little bit, maybe I can submit a PR for it.
The text was updated successfully, but these errors were encountered: