Endo
    Preparing search index...

    Interface DeprecatedAssertionUtilities

    interface DeprecatedAssertionUtilities {
        error: {
            <T extends GenericErrorConstructor>(
                details: Details,
                errConstructor: T,
                options?: AssertMakeErrorOptions,
            ): InstanceType<T>;
            (
                details?: Details,
                errConstructor?: GenericErrorConstructor,
                options?: AssertMakeErrorOptions,
            ): Error;
        };
        makeAssert: MakeAssert;
    }
    Index

    Properties

    Properties

    error: {
        <T extends GenericErrorConstructor>(
            details: Details,
            errConstructor: T,
            options?: AssertMakeErrorOptions,
        ): InstanceType<T>;
        (
            details?: Details,
            errConstructor?: GenericErrorConstructor,
            options?: AssertMakeErrorOptions,
        ): Error;
    }

    Type Declaration

      • <T extends GenericErrorConstructor>(
            details: Details,
            errConstructor: T,
            options?: AssertMakeErrorOptions,
        ): InstanceType<T>
      • Create an error with a message in which unquoted details substitution values may have been redacted into lossy typeof output but are still available for logging to an associated console.

        Narrows the return type to the constructor type.

        Type Parameters

        Parameters

        Returns InstanceType<T>

        Instance of T

      • (
            details?: Details,
            errConstructor?: GenericErrorConstructor,
            options?: AssertMakeErrorOptions,
        ): Error
      • Create an error with a message in which unquoted details substitution values may have been redacted into lossy typeof output but are still available for logging to an associated console.

        Parameters

        Returns Error

        Instance of Error

    makeAssert: MakeAssert