fix build errors
This commit is contained in:
parent
f0bf7e550b
commit
32ec40ea45
|
@ -23,7 +23,7 @@ export async function errorWrapper<T>(
|
||||||
} else {
|
} else {
|
||||||
log_error(e);
|
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();
|
return fn();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log_error(new TemplaterError(msg, e.message));
|
log_error(new TemplaterError(msg, e.message));
|
||||||
return null as T;
|
return null as unknown as T;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue