Skip to content

Commit

Permalink
fix: type checking when using dnt (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen authored Sep 24, 2024
1 parent 5551c29 commit b3409f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@denosaurs/wait",
"version": "0.2.1",
"version": "0.2.2",
"exports": {
".": "./mod.ts",
"./spinners": "./spinners.ts",
Expand Down
1 change: 1 addition & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class Spinner {
];
for (const method of methods) {
const original = console[method] as (...args: unknown[]) => void;
// @ts-ignore Ignore the next line for dnt to type check properly
console[method] = (...args: unknown[]) => {
if (this.isSpinning) {
this.stop();
Expand Down

0 comments on commit b3409f6

Please sign in to comment.