fix build errors

This commit is contained in:
ransurf 2023-12-04 22:05:49 -08:00
parent f0bf7e550b
commit 32ec40ea45
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ export async function errorWrapper<T>(
} else {
log_error(e);
}
return null as T;
return null as unknown as T;
}
}
@ -32,6 +32,6 @@ export function errorWrapperSync<T>(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;
}
}