We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having the following code:
@JsExport class Tester { fun test(f: String = "default value"): String { return f } }
Will give this ts output:
class Tester { constructor(); test(f?: string): string; }
Preserving default value. However, using KustomExport on the same code:
@KustomExport class Tester { fun test(f: String = "default value"): String { return f } }
Will generate following kotlin code:
public fun test(f: String): String { val result = common.test( f = f, ) return result }
As a result, produced typescript definitions have mandatory parameter f:
f
class Tester { constructor(); test(f: string): string; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
:The text was updated successfully, but these errors were encountered: