Skip to content

Commit 442985a

Browse files
committed
Revert "feat: add ts types (#70)"
License: MIT Signed-off-by: Henrique Dias <[email protected]>
1 parent e9a26c1 commit 442985a

15 files changed

+550
-641
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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
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+
3238
## Usage
3339

3440
### Example

example.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict'
2+
3+
const multicodec = require('multicodec')
4+
5+
const prefixedProtobuf = multicodec.addPrefix('protobuf', new TextEncoder().encode('some protobuf code'))
6+
7+
// eslint-disable-next-line no-console
8+
console.log(prefixedProtobuf)
9+
// => prefixedProtobuf 0x50...

package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
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-
},
167
"scripts": {
178
"lint": "aegir lint",
189
"test": "aegir test",

0 commit comments

Comments
 (0)