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

Commit

Permalink
fix: typings reference
Browse files Browse the repository at this point in the history
  • Loading branch information
samparsky committed Aug 24, 2019
1 parent 2f1da18 commit b2af6ef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list",
"leadMaintainer": "Vasco Santos <[email protected]>",
"main": "src/index.js",
"typings": "src/typings.d.ts",
"typings": "src/types.d.ts",
"scripts": {
"lint": "aegir lint",
"test": "aegir test",
Expand Down Expand Up @@ -45,8 +45,7 @@
},
"pre-push": [
"lint",
"test",
"generate-typings"
"test"
],
"contributors": [
"Abraham Elmahrek <[email protected]>",
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,7 @@ class Bootstrap extends EventEmitter {
}
}
exports = module.exports = Bootstrap
/** Export tags */
/** Tag
* @type string
*/
exports.tag = 'bootstrap'
5 changes: 3 additions & 2 deletions src/typings.d.ts → src/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ declare module "js-libp2p-bootstrap" {
*/
stop(): void;
}
/** Export tags
/** Tag
* @type string
*/
var tag: any;
var tag: string;
}

2 changes: 1 addition & 1 deletion test/typings/test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="../../src/typings.d.ts" />
/// <reference path="../../src/types.d.ts" />

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

0 comments on commit b2af6ef

Please sign in to comment.