From 32ec40ea451a826b0c86224779f6a611db6408af Mon Sep 17 00:00:00 2001 From: ransurf Date: Mon, 4 Dec 2023 22:05:49 -0800 Subject: [PATCH] fix build errors --- src/utils/error.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/error.ts b/src/utils/error.ts index 6b26394..d6cb7cb 100644 --- a/src/utils/error.ts +++ b/src/utils/error.ts @@ -23,7 +23,7 @@ export async function errorWrapper( } else { log_error(e); } - return null as T; + return null as unknown as T; } } @@ -32,6 +32,6 @@ export function errorWrapperSync(fn: () => T, msg: string): T { return fn(); } catch (e) { log_error(new TemplaterError(msg, e.message)); - return null as T; + return null as unknown as T; } }