diff --git a/modules/material-management/src/needs.ts b/modules/material-management/src/needs.ts index 5c62a662b..b5d310fba 100644 --- a/modules/material-management/src/needs.ts +++ b/modules/material-management/src/needs.ts @@ -16,7 +16,7 @@ export function needs( condition: any, errorMessage: string, Err: ErrorConstructor = Error -) { +): asserts condition { if (!condition) { throw new Err(errorMessage) }