Closed loucyx closed 4 years ago
Hey thank you for the suggestions, but no thanks.
I have my patterns and tooling in place as the result of publishing many modules. Plus that's a lot of extra tooling for a single line d.ts file 😜
It's also a default export because there's only one function to this module & that's very likely to never change.
Thanks!
Love the simplicity of the code @lukeed! This ticket is just 2 suggestions, not issues at all:
So the devs can do both of these:
d.ts
file, you can usetypescript
as adevDependency
to generate thed.ts
automatically from the docs. So if you do something like this:And then you run
tsc
(having atsconfig.json
which hasallowJs
set totrue
, anddeclaration
set totrue
), you'll get ad.ts
file like this:So if you add tsc to your build as a last step, you can work in the JS only and forget about the
d.ts
.If you want me to lend you a hand with any of this suggestions, I can create an PR for it 😄