Jan Tobola
05/29/2023, 10:41 AM@JsExport
external interface WelcomeProps : Props {
var name: String
}
@JsExport
val Welcome = FC<WelcomeProps> { props -> ... }
It generates this:
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?turansky
05/31/2023, 2:23 PM*.d.ts
looks like solution