Skip to content

Commit

Permalink
Revert "Revert "feat: add ts types (#70)""
Browse files Browse the repository at this point in the history
This reverts commit 442985a.
  • Loading branch information
hacdias committed Dec 11, 2020
1 parent bb8a08f commit c19b337
Show file tree
Hide file tree
Showing 15 changed files with 641 additions and 550 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
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
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.

9 changes: 9 additions & 0 deletions package.json
Expand Up @@ -4,6 +4,15 @@
"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

0 comments on commit c19b337

Please sign in to comment.