• 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 Parameters

    • TType

    Parameters

    • value: undefined | null | TType

      value to assert.

    • Optional identifier: string

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

    Returns asserts value

Generated using TypeDoc