webchalk-animate - v0.31.0
    Preparing search index...

    Type Alias SequenceErrorGenerator

    SequenceErrorGenerator: {
        <TError extends Error>(error: TError): TError;
        <TError extends Error>(
            ErrorClass: new (message: string) => TError,
            msg: string,
        ): TError;
    }

    A function that throws detailed error using additional location information based on AnimSequence and its parent AnimTimeline.

    Type Declaration

      • <TError extends Error>(error: TError): TError
      • If an Error instance is passed, the location is appended to it.

        Type Parameters

        Parameters

        • error: TError

          The Error instance to which the location information will be attached.

        Returns TError

      • <TError extends Error>(
            ErrorClass: new (message: string) => TError,
            msg: string,
        ): TError
      • If an Error class function is passed, it is used to create an Error instance with the msg parameter as the error message.

        Type Parameters

        Parameters

        • ErrorClass: new (message: string) => TError

          The Error class that will be instantiated.

        • msg: string

          The error message that will appear before the location information.

        Returns TError