Skip to content

Commit

Permalink
Add example import for package level types (#4611)
Browse files Browse the repository at this point in the history
I couldn't find an example import for package level types documented elsewhere

Co-authored-by: Nazar Hussain <nazarhussain@gmail.com>
  • Loading branch information
jgresham and nazarhussain authored Jan 21, 2022
1 parent 2b7c50a commit b8baafa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ You can use `web3.js` as follows:

```typescript
import Web3 from 'web3';
import { BlockHeader, Block } from 'web3-eth' // ex. package types
const web3 = new Web3('ws://localhost:8546');
```

Expand Down

0 comments on commit b8baafa

Please sign in to comment.