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
Primitive nullable Kotlin types are ignored when they are used in a generic type in inheritance.
Given
interface IReference<T> { val id: T } data class SomeDto( override val id: Int? ) : IReference<Int?>
generates syntactically incorrect TypeScript
export interface SomeDtoGenerated extends IReferenceGenerated<number> { id: number | null; } export interface IReferenceGenerated<T> { id: T; }
whereas it should be SomeDtoGenerated extends IReferenceGenerated<number | nullable>
SomeDtoGenerated extends IReferenceGenerated<number | nullable>
Plugin version: 3.1.1185
Note: Properties/fields do not have this issue. F.e. the following works as expected:
data class Dummy(val dummyField: IReference<Int?>)
The text was updated successfully, but these errors were encountered:
same here
Sorry, something went wrong.
No branches or pull requests
Primitive nullable Kotlin types are ignored when they are used in a generic type in inheritance.
Given
generates syntactically incorrect TypeScript
whereas it should be
SomeDtoGenerated extends IReferenceGenerated<number | nullable>
Plugin version: 3.1.1185
Note: Properties/fields do not have this issue. F.e. the following works as expected:
The text was updated successfully, but these errors were encountered: