quiro
04/19/2024, 1:36 PMgenerateTypeScriptDefinitions
on a node library I'm creating. I see that the namespace in Typescript is generated from the package name of the definition file. Is there any way to override it? For example, the code:
package a.b.c
@JsExport
fun doSomething(param: String) { ... }
generates
export declare namespace a.b.c {
function doSomething(param: string)
}
while I would like
export declare namespace Helpers {
function doSomething(param: string)
}
Artem Kobzar
04/19/2024, 1:41 PMEdoardo Luppi
04/19/2024, 6:42 PMEdoardo Luppi
04/19/2024, 6:48 PM@JvmPackageName
annotation, might be worth looking at how it worksEdoardo Luppi
04/19/2024, 6:54 PMuseEsModules()
Bruno Medeiros
04/20/2024, 3:28 AMpackage Helpers
you'll get what you wantBruno Medeiros
04/20/2024, 3:29 AMEdoardo Luppi
04/23/2024, 2:53 PM