#Typescript says function returns `Promise<any>` but when I jump to definition, it says otherwise
8 messages · Page 1 of 1 (latest)
it's possible that FullChampionData isn't being properly re-exported from the dependency
there's a lot of nested files and types that I need to export, so I added a
"./*"; "./src/*.ts"
to my exports, and I am able to import types like
import { ChampionDto, FullChampionData } from "@poroscout/api/types/datadragon";
and those types work fine, I can "fix" the problem by adding as Promise<FullChampionData>
thonk
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.
i have been fighting with esm for the past few hours, so its possible i misconfigured something somewhere