I'm seeing typescript definitions generated but in...
# javascript
n
I'm seeing typescript definitions generated but in VS I don't see suggestions. I swear I had seen them at one point. Anything specific I should check for?
t
Missed "types" field in
package.json
?
🙌 1
👀 1
n
That's 100% it. Added the line and it worked. There a reason this isn't added as part of the generated package.json? Otherwise, thank you!
t
Generated
package.json
is for build, not for publication :)
AFAIK
npm-publish
plugin do required changes cc @Big Chungus
n
Added a custom field and manually adding the "types" field worked for me: https://kotlinlang.org/docs/js-project-setup.html#package-json-customization