# Generating Typescript with the multiplatform plugin

**URL:** <https://discuss.kotlinlang.org/t/generating-typescript-with-the-multiplatform-plugin/18032>\
**Category:** JavaScript\
**Created:** [June 10, 2020, 12:03pm UTC](https://discuss.kotlinlang.org/t/generating-typescript-with-the-multiplatform-plugin/18032 "2020-06-10T12:03:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![camlane](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@camlane](https://discuss.kotlinlang.org/u/camlane)\
**Post date:** [June 10, 2020, 12:03pm UTC](https://discuss.kotlinlang.org/t/generating-typescript-with-the-multiplatform-plugin/18032/1 "2020-06-10T12:03:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![lukas](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lukas](https://discuss.kotlinlang.org/u/lukas)\
**Post date:** [January 19, 2021, 6:38pm UTC](https://discuss.kotlinlang.org/t/generating-typescript-with-the-multiplatform-plugin/18032/2 "2021-01-19T18:38:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![gmazzo65](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/gmazzo65/32/8552_2.png) [@gmazzo65](https://discuss.kotlinlang.org/u/gmazzo65)\
**Post date:** [May 6, 2021, 4:21pm UTC](https://discuss.kotlinlang.org/t/generating-typescript-with-the-multiplatform-plugin/18032/3 "2021-05-06T16:21:02Z")

</div>

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