Closed jnordberg closed 3 years ago
Workaround
type ThenArg<T> = T extends PromiseLike<infer U> ? U : T
let account: ThenArg<ReturnType<APIClient['v1']['chain']['get_account']>> // AccountObject
It was actually already exported under the API namespace
API.v1.AccountObject
And possibly other useful API types