Skip to content

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

@ntduan

Description

@ntduan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions