Closed cecilemuller closed 6 years ago
Feel free to ask if you have any questions 😃
It's just one line, with no adverse side-effects, and the link to the Typescript docs even shows it's the recommended way to do it.
We're already planning on merging this on our upcoming release this week.
Though, shouldn't the declaration be named as index.d.ts
?
That's great 😃
And no, it can point to a regular .ts file as well.
If you have VSCode, you can even try this boilerplate to see the effect of the line change (just close and re-open VSCode after adding the line to make sure it notices the change).
@virn I think best thing to do here is to recreate this commit in another branch, because this MR merges straight to master (every master commit in our workflow is intended to be a full version release).
Sure, if you prefer I can close the PR. It's just one line anyway.
VSCode Intellisense couldn't find the module definition because the NPM package didn't have a property "types" that points to index.ts