Skip to content

Commit

Permalink
chore: add types for nanobench
Browse files Browse the repository at this point in the history
Types for nanobench were [recently added to DefinitelyTyped][0], so we
can use them.

The `benchmarks` directory is not currently type-checked, so this change
has no impact, but it should make it easier to type-check in the future.

[0]: DefinitelyTyped/DefinitelyTyped#68221
  • Loading branch information
EvanHahn committed Jan 19, 2024
1 parent 75a312d commit 33cad12
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@types/b4a": "^1.6.0",
"@types/debug": "^4.1.8",
"@types/json-schema": "^7.0.11",
"@types/nanobench": "^3.0.0",
"@types/node": "^18.16.3",
"@types/sinonjs__fake-timers": "^8.1.2",
"@types/streamx": "^2.9.1",
Expand Down
1 change: 0 additions & 1 deletion types/modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// - KeyPair
// - DhtNode

declare module 'nanobench'
declare module 'sodium-universal'
declare module 'sub-encoder'

Expand Down

0 comments on commit 33cad12

Please sign in to comment.