UNPKG

1.19 kBMarkdownView Raw
1## web3-typescript-typings
2
3There currently isn't an official [Web3][web3]
4type definition included in the [DefinitelyTyped][definitelytyped] project.
5Until that happens, we will continue to improve our own type definition.
6If it get's close to comprehensive, we'll add it to [DefinitelyTyped][definitelytyped].
7
8[web3]: https://github.com/ethereum/web3.js/
9[definitelytyped]: https://github.com/DefinitelyTyped/DefinitelyTyped
10
11## Installation
12
13```bash
14yarn add -D web3-typescript-typings
15```
16
17## Usage
18
19Add the following line within an `include` section of your `tsconfig.json`
20
21```json
22"./node_modules/web3-typescript-typings/index.d.ts"
23```
24
25## Contributing
26
27We strongly encourage that the community help us make improvements and determine the future direction of the protocol. To report bugs within this package, please create an issue in this repository.
28
29Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started.
30
31### Install Dependencies
32
33If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
34
35```bash
36yarn config set workspaces-experimental true
37```
38
39Then install dependencies
40
41```bash
42yarn install
43```
44
45### Lint
46
47```bash
48yarn lint
49```
50
\No newline at end of file