@kayahr/assert
    Preparing search index...

    Interface AssertionErrorOptions

    Options for AssertionError.

    interface AssertionErrorOptions {
        actual?: unknown;
        expected?: unknown;
        reason?: string;
    }

    Hierarchy

    • ErrorOptions
      • AssertionErrorOptions
    Index

    Properties

    actual?: unknown

    Optional actual value.

    expected?: unknown

    Optional expected value.

    reason?: string

    Optional assertion reason. When specified then the actual exception message is prefixed with this string separated by a dot and whitespace.