core.assert
Home > @medplum/core > assert
assert() function
Signature:
export declare function assert(condition: unknown, msg?: string): asserts condition;
Parameters
Parameter | Type | Description |
---|---|---|
condition | unknown | |
msg | string | (Optional) |
Returns:
asserts condition