Skip to content

Commit c19b337

Browse files
committed
Revert "Revert "feat: add ts types (#70)""
This reverts commit 442985a.
1 parent bb8a08f commit c19b337

15 files changed

+641
-550
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v2
1515
- run: yarn
1616
- run: yarn lint
17-
# - uses: gozala/[email protected]
17+
- uses: gozala/[email protected]
1818
- run: yarn build
1919
- run: yarn aegir dep-check
2020
- uses: ipfs/aegir/actions/bundle-size@master

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@
2929
> npm install multicodec
3030
```
3131

32-
The type definitions for this package are available on http://definitelytyped.org/. To install just use:
33-
34-
```sh
35-
$ npm install -D @types/multicodec
36-
```
37-
3832
## Usage
3933

4034
### Example

example.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
"description": "JavaScript implementation of the multicodec specification",
55
"leadMaintainer": "Henrique Dias <[email protected]>",
66
"main": "src/index.js",
7+
"types": "dist/src/index.d.ts",
8+
"typesVersions": {
9+
"*": {
10+
"src/*": [
11+
"dist/src/*",
12+
"dist/src/*/index"
13+
]
14+
}
15+
},
716
"scripts": {
817
"lint": "aegir lint",
918
"test": "aegir test",

0 commit comments

Comments
 (0)