Skip to content

Commit

Permalink
feat: add ts types (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored Dec 11, 2020
1 parent 11cf881 commit 25cf33f
Show file tree
Hide file tree
Showing 15 changed files with 636 additions and 550 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- run: yarn
- run: yarn lint
# - uses: gozala/typescript-error-reporter-action@v1.0.4
- uses: gozala/typescript-error-reporter-action@v1.0.4
- run: yarn build
- run: yarn aegir dep-check
- uses: ipfs/aegir/actions/bundle-size@master
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
> npm install multicodec
```

The type definitions for this package are available on http://definitelytyped.org/. To install just use:

```sh
$ npm install -D @types/multicodec
```

## Usage

### Example
Expand Down
9 changes: 0 additions & 9 deletions example.js

This file was deleted.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "JavaScript implementation of the multicodec specification",
"leadMaintainer": "Henrique Dias <hacdias@gmail.com>",
"main": "src/index.js",
"types": "dist/src/index.d.ts",
"typesVersions": {
"*": { "src/*": ["dist/src/*", "dist/src/*/index"] }
},
"scripts": {
"lint": "aegir lint",
"test": "aegir test",
Expand Down
Loading

0 comments on commit 25cf33f

Please sign in to comment.