Axinom Mosaic Libraries
    Preparing search index...
    assertNotFalsy: <TType>(
        value: TType | undefined | null,
        identifier?: string,
    ) => asserts value = ...

    Type assertion function that throws an error if provided value is falsy, and asserts value to a truthy type if no error is thrown.

    Type Declaration

      • <TType>(value: TType | undefined | null, identifier?: string): asserts value
      • Type Parameters

        • TType

        Parameters

        • value: TType | undefined | null

          value to assert.

        • Optionalidentifier: string

          used in thrown instance of a MosaicError to make message more understandable on what exactly is falsy.

        Returns asserts value