#Typescript says function returns `Promise<any>` but when I jump to definition, it says otherwise

8 messages · Page 1 of 1 (latest)

sharp comet
#

See the screenshot for context. The function lies in a different project in the same monorepo. Using Typescript + ES Modules. Compiling with tsc shows the same error.

fervent loom
sharp comet
fervent loom
#

thonk

sharp comet
#

it would be a lot of work for me to manually re-export all the types since there's a lot of different files and stuff.

fervent loom
#

yeah i think normally this shouldn't happen

#

not quite sure what's going on here

sharp comet
#

i have been fighting with esm for the past few hours, so its possible i misconfigured something somewhere