I try to use a Kotlin/JS IR based module inside a ...
# javascript
j
I try to use a Kotlin/JS IR based module inside a TypeScript project. And it seems the module after assembling misses a
"types": "kotlin/shared.d.ts"
field in the
package.json
. Without that field TypeScript did not detect the types of the module in the project. I for now added the field manually with:
Copy code
compilations["main"].packageJson {
    customField("types", "kotlin/shared.d.ts")
}
Did I miss a setting or should I report an issue to YouTrack?
b
Types are still experimental. You might want to use npm assemblies from github.com/mpetuska/npm-publish