Is it possible/planned to `@JsExport` a `typealias...
# javascript
a
Is it possible/planned to
@JsExport
a
typealias
? Have some complicated types that I'd love to be able to provide more readable names to in my .d.ts file
2
b
Isn't external interface extending complicated external interface kinda the same thing from .d.ts perspective?
👀 1
Duck typing and all
a
True! that does mostly seem to do the trick -- just have to do an
unsafeCast
to my new external interface which isn't the prettiest compared to how Kotlin handles typealiases
Also I'd like to see
export type MySimpleType = MyVeryLongAndComplexType
rather than
export interface MySimpleType extends MyVeryLongAndComplexType { }
Defining the types as equal lets me also pass it in as input from TS to Kotlin/JS without TS getting angry