When generating typescript definitions from Kotlin...
# javascript
j
When generating typescript definitions from Kotlin (+ kotlin react wrappers) code, e.g.:
Copy code
@JsExport
external interface WelcomeProps : Props {
    var name: String
}

@JsExport
val Welcome = FC<WelcomeProps> { props -> ... }
It generates this:
Copy code
type Nullable<T> = T | null | undefined
export declare interface WelcomeProps extends Props {
    name: string;
}
export declare const Welcome: FC<WelcomeProps>;
export as namespace hybrid_app;
but
Props
and
FC
are unknown types (i.e.:
TS2304: Cannot find name 'Props'.
) and I think that this is the reason why autocomplete in IntelliJ idea does not work when using Welcome component from a standard JS project. Can someone help to solve this?
t
For now - custom addotional
*.d.ts
looks like solution