From 142816363d99ff1d514302db8f1c3fde8daf0dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20Sj=C3=B6green?= Date: Tue, 24 Sep 2024 14:06:04 +0200 Subject: [PATCH] fix: type checking when using dnt --- deno.json | 2 +- mod.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deno.json b/deno.json index bc6da23..dd52120 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@denosaurs/wait", - "version": "0.2.1", + "version": "0.2.2", "exports": { ".": "./mod.ts", "./spinners": "./spinners.ts", diff --git a/mod.ts b/mod.ts index bdf21b9..ac14e70 100644 --- a/mod.ts +++ b/mod.ts @@ -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();