@tykoned/tykon
    Preparing search index...

    Function convertToKotlinType

    • Converts a TypeScript type to a Kotlin type.

      Parameters

      • originalType: string

        The TypeScript type to convert.

      • strict: boolean = false

        Whether to never return a new type.

      • noDynamic: boolean = false

        Whether to never return a dynamic type.

      Returns string

      The corresponding Kotlin type as a string.

      convertToKotlinType("string") // returns "String"
      convertToKotlinType("number[]") // returns "Array<Double>"
      convertToKotlinType("Promise<string>") // returns "Promise<String>"