Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit b2af6ef

Browse files
committed
fix: typings reference
1 parent 2f1da18 commit b2af6ef

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list",
55
"leadMaintainer": "Vasco Santos <[email protected]>",
66
"main": "src/index.js",
7-
"typings": "src/typings.d.ts",
7+
"typings": "src/types.d.ts",
88
"scripts": {
99
"lint": "aegir lint",
1010
"test": "aegir test",
@@ -45,8 +45,7 @@
4545
},
4646
"pre-push": [
4747
"lint",
48-
"test",
49-
"generate-typings"
48+
"test"
5049
],
5150
"contributors": [
5251
"Abraham Elmahrek <[email protected]>",

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,7 @@ class Bootstrap extends EventEmitter {
8181
}
8282
}
8383
exports = module.exports = Bootstrap
84-
/** Export tags */
84+
/** Tag
85+
* @type string
86+
*/
8587
exports.tag = 'bootstrap'

src/typings.d.ts renamed to src/types.d.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ declare module "js-libp2p-bootstrap" {
2828
*/
2929
stop(): void;
3030
}
31-
/** Export tags
31+
/** Tag
32+
* @type string
3233
*/
33-
var tag: any;
34+
var tag: string;
3435
}
3536

test/typings/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// <reference path="../../src/typings.d.ts" />
1+
/// <reference path="../../src/types.d.ts" />
22

33
import { Bootstrap } from "js-libp2p-bootstrap";
44
const bootstrap1 = new Bootstrap({list: ["item"], interval: 1})

0 commit comments

Comments
 (0)