From 9051b3549182dd777ea0dd5390047c25748c4ecd Mon Sep 17 00:00:00 2001 From: Anton Nesterov Date: Sat, 19 Oct 2024 16:20:05 +0200 Subject: [PATCH] fix wrong type --- grip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grip.ts b/grip.ts index 9f0b5b1..51c317d 100644 --- a/grip.ts +++ b/grip.ts @@ -31,7 +31,7 @@ export class Err extends Error { of(cls: any): boolean { return this.Of(cls); } - static fromCatch(error: any): Error { + static fromCatch(error: any): Status { const e = new Err(typeof error === "string" ? error : error.message); e.cause = error; e.stack = error.stack;