diff --git a/package.json b/package.json index 21f67df..d0a553a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list", "leadMaintainer": "Vasco Santos ", "main": "src/index.js", - "typings": "src/typings.d.ts", + "typings": "src/types.d.ts", "scripts": { "lint": "aegir lint", "test": "aegir test", @@ -45,8 +45,7 @@ }, "pre-push": [ "lint", - "test", - "generate-typings" + "test" ], "contributors": [ "Abraham Elmahrek ", diff --git a/src/index.js b/src/index.js index c541d20..2dac59d 100644 --- a/src/index.js +++ b/src/index.js @@ -81,5 +81,7 @@ class Bootstrap extends EventEmitter { } } exports = module.exports = Bootstrap -/** Export tags */ +/** Tag + * @type string +*/ exports.tag = 'bootstrap' diff --git a/src/typings.d.ts b/src/types.d.ts similarity index 93% rename from src/typings.d.ts rename to src/types.d.ts index d68e74b..f1f2503 100644 --- a/src/typings.d.ts +++ b/src/types.d.ts @@ -28,8 +28,9 @@ declare module "js-libp2p-bootstrap" { */ stop(): void; } - /** Export tags + /** Tag + * @type string */ - var tag: any; + var tag: string; } diff --git a/test/typings/test.ts b/test/typings/test.ts index 13c2dee..e0c1558 100644 --- a/test/typings/test.ts +++ b/test/typings/test.ts @@ -1,4 +1,4 @@ -/// +/// import { Bootstrap } from "js-libp2p-bootstrap"; const bootstrap1 = new Bootstrap({list: ["item"], interval: 1})