Having the following code: ```kotlin @JsExport class Tester { fun test(f: String = "default value"): String { return f } } ``` Will give this ts output: ```typescript class Tester { constructor(); test(f?: string): string; } ``` Preserving default value. However, using KustomExport on the same code: ```kotlin @KustomExport class Tester { fun test(f: String = "default value"): String { return f } } ``` Will generate following kotlin code: ```kotlin public fun test(f: String): String { val result = common.test( f = f, ) return result } ``` As a result, produced typescript definitions have mandatory parameter `f`: ```typescript class Tester { constructor(); test(f: string): string; } ```
Having the following code:
Will give this ts output:
Preserving default value. However, using KustomExport on the same code:
Will generate following kotlin code:
As a result, produced typescript definitions have mandatory parameter
f: