Const
A group of guard methods that assert their conditions and do nothing else.
This can also be called as a standalone assertion function which asserts that its input is truthy.
import {assert} from '@augment-vir/assert';const value: unknown = 'some value' as unknown;assert.isString(value);// `value` will now be typed as a `string` Copy
import {assert} from '@augment-vir/assert';const value: unknown = 'some value' as unknown;assert.isString(value);// `value` will now be typed as a `string`
AssertionError When the assertion fails.
@augment-vir/assert
A group of guard methods that assert their conditions and do nothing else.
This can also be called as a standalone assertion function which asserts that its input is truthy.