Converts a TypeScript type to a Kotlin type.
The TypeScript type to convert.
Whether to never return a new type.
Whether to never return a dynamic type.
The corresponding Kotlin type as a string.
convertToKotlinType("string") // returns "String"convertToKotlinType("number[]") // returns "Array<Double>"convertToKotlinType("Promise<string>") // returns "Promise<String>" Copy
convertToKotlinType("string") // returns "String"convertToKotlinType("number[]") // returns "Array<Double>"convertToKotlinType("Promise<string>") // returns "Promise<String>"
Converts a TypeScript type to a Kotlin type.