wharfkit / antelope

Core types, client interfaces, and other tools for working with Antelope-based blockchains.
Other
42 stars 23 forks source link

Export AccountObject #7

Closed jnordberg closed 3 years ago

jnordberg commented 3 years ago

And possibly other useful API types

jnordberg commented 3 years ago

Workaround

type ThenArg<T> = T extends PromiseLike<infer U> ? U : T
let account: ThenArg<ReturnType<APIClient['v1']['chain']['get_account']>> // AccountObject
jnordberg commented 3 years ago

It was actually already exported under the API namespace

API.v1.AccountObject