augment-vir - v31.13.0
    Preparing search index...

    Variable assertConst

    assert: (input: unknown, failureMessage?: string) => void & typeof allAssertions = ...

    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`

    AssertionError When the assertion fails.