@midnight-ntwrk/dapp-connector-api
v1.2.2
Published
Midnight DApp Connector API
Downloads
277
Readme
Midnight DApp connector API
Definition of the Midnight DApp connector interface.
Structure
This package declares a set of TypeScript interfaces. All of them can be found in src/
directory:
api.ts
- To the interface that's exposed to dappserrors.ts
- Errors thrown from the exposed api
Documentation
To generate documentation files in docs
folder:
yarn build:docs
Global Variables Exposure
This package declares a global variable in the window.midnight.{walletName}
scope.
The package needs to be imported in the project or the (typeRoots)[https://www.typescriptlang.org/tsconfig#typeRoots] needs to be configured to load the global variable declaration.