Generating Typescript with the multiplatform plugin

I am using the kotlin multiplatform plugin 1.4 M2 and cant seem to work out how to generate typescript files (.d.ts) instead of js

A snippet of my build is below
kotlin {
sourceSets {
commonMain {
}
}
js(IR) {
useCommonJs()
browser()
binaries.executable()
}
}

In the directory build\js\packages$project-name\kotlin I can see a js file but no .d.ts

Has anyone managed to generate a .d.ts file?

2 Likes

any news on this?

I declared in the build file:
kotlin { js(IR) { useCommonJs() binaries.executable() } }

I declared on a kotlin class:
@JsExport

I executed jsMainClasses, but I cannot find any generated *.d.ts file in the build folder. What am I missing/doing wrong?

Have you found a way to generate them for a multiplatform project?