Throws an error with the specified message.
Import:
import { throwExpression } from '@mnaoumov/typescript-lib/error';
Signature:
function throwExpression(error: unknown): never
Parameters:
| Parameter |
Type |
Description |
error |
unknown |
The error to throw. |
Returns: never