Functions that return Promise seem to be converted...
# javascript
m
Functions that return Promise seem to be converted to
any
in TS declarations in 1.6.20 Anybody know a fix for this? EG:
Copy code
@ExperimentalJsExport
@JsExport
fun test(): Promise<JSClient> {
    TODO()
}

@ExperimentalJsExport
@JsExport
fun useClient(): JSClient? {
compiles to
Copy code
export function test(): any/* Promise<JSClient> */;
export function useClient(): Nullable<JSClient>;
👀 1
c
you could try if its better in 1.7-rc
m
theres also a plugin linked in that issue that provides a workaround for that issue and others while we wait for fixes to get into a new release