polkadot-api / polkadot-api

Polkadot-API is a meticulously crafted suite of libraries, each designed to be composable, modular, and aligned with a "light-client first" philosophy
https://papi.how
MIT License
89 stars 21 forks source link

Export `CompatibilityToken` #718

Closed Tbaut closed 1 day ago

Tbaut commented 2 days ago

Hey there, did you miss me already? :) While I'm about to use it to make synchronous calls, I realize that I can't import the type CompatibilityToken.

Module '"polkadot-api"' declares 'CompatibilityToken' locally, but it is not exported

did I miss something?

carlosala commented 2 days ago

Yep, you're right. It's not being exported. We should probably export it as a type, let's think about it. In the meantime,

Awaited<ReturnType<PolkadotClient["getTypedApi"]>["compatibilityToken"]>

gets the job done.

voliva commented 2 days ago

Yep, we definitely have to export it