From 430eeff04937c121b7e7083e6aee7f1960200379 Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Mon, 5 Feb 2024 09:02:59 -0600 Subject: [PATCH] chore: use looser type for Brittle's teardown function (#464) `t.teardown` [doesn't care about the return type of its callback][0] so I updated the types to match. [0]: https://github.com/holepunchto/brittle/blob/8926893862dc1ecf9a213fedf2306f24fe47b8cc/index.js#L640 --- types/brittle.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/brittle.d.ts b/types/brittle.d.ts index 5cf4c8ce8..738d21ffb 100644 --- a/types/brittle.d.ts +++ b/types/brittle.d.ts @@ -43,7 +43,7 @@ declare module 'brittle' { export interface TestInstance extends Assertion { plan(n: number): void - teardown(fn: () => void | Promise, options?: { order?: number }): void + teardown(fn: () => unknown | Promise, options?: { order?: number }): void timeout(ms: number): void comment(message: string): void end(): void