@trumpf/ux.utils
    Preparing search index...

    Interface ErrorDispatcherType<T>

    interface ErrorDispatcherType<T extends Error = Error> {
        dispatchError: (error: T) => void;
        subscribe: (handler: ErrorHandler<T>) => string;
        unsubscribe: (subscriberId: string) => void;
    }

    Type Parameters

    • T extends Error = Error

    Implemented by

    Index

    Properties

    dispatchError: (error: T) => void

    Dispatch an error

    subscribe: (handler: ErrorHandler<T>) => string

    Subscribe error handler

    Type Declaration

    unsubscribe: (subscriberId: string) => void

    Unsubscribe error handler

    Type Declaration

      • (subscriberId: string): void
      • Parameters

        • subscriberId: string

          {string}

        Returns void