Skip to content

Commit 189c00a

Browse files
committedDec 1, 2021
chore: fix up types
1 parent fbc9bf0 commit 189c00a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎test/peer-id.spec.js

+4
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ describe('PeerId', () => {
365365
for (const fn of fncs) {
366366
it(`${fn} (${util.inspect(gb)})`, async () => {
367367
try {
368+
// @ts-expect-error cannot use a string to index PeerId
368369
await PeerId[fn](gb)
369370
} catch (err) {
370371
expect(err).to.exist()
@@ -375,8 +376,11 @@ describe('PeerId', () => {
375376
})
376377

377378
describe('throws on inconsistent data', () => {
379+
/** @type {crypto.keys.supportedKeys.rsa.RsaPrivateKey} */
378380
let k1
381+
/** @type {crypto.keys.supportedKeys.rsa.RsaPrivateKey} */
379382
let k2
383+
/** @type {crypto.keys.supportedKeys.rsa.RsaPrivateKey} */
380384
let k3
381385

382386
before(async () => {

‎tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "dist"
55
},
66
"include": [
7-
"./test/**/*.spec.js"
7+
"./test/**/*.js"
88
],
99
"exclude": [
1010
"src/proto.js" // generated file

0 commit comments

Comments
 (0)
Please sign in to comment.