Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to add a package like @polkadot/api-augment to allow typescript to be able to infer types correctly #275

Open
ntduan opened this issue Jan 22, 2022 · 0 comments

Comments

@ntduan
Copy link
Contributor

ntduan commented Jan 22, 2022

Now polkadot js separates the types of dependency chain into a separate package. and now need to manually import . acala.js may also be considered to do so.

https://github.com/polkadot-js/api/tree/master/packages/api-augment

import '@polkadot/api-augment/polkadot'; // polkadot 

import '@acala-network/api-augment/acala'; //acala
import '@acala-network/api-augment/karura'; //karura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant