Skip to main content

Web3PromiEvent <ResolveType, EventMap>

Hierarchy

Implements

  • Promise<ResolveType>

Index

Constructors

constructor

Properties

[toStringTag]

[toStringTag]: Promise

Methods

catch

  • catch<TResult>(onrejected?: (reason: unknown) => TResult | PromiseLike<TResult>): Promise<ResolveType | TResult>
  • Type parameters

    • TResult = never

    Parameters

    • optionalonrejected: (reason: unknown) => TResult | PromiseLike<TResult>

      Returns Promise<ResolveType | TResult>

    emit

    • emit<K>(eventName: K, params: EventMap[K]): void
    • Type parameters

      • K: string

      Parameters

      • eventName: K
      • params: EventMap[K]

      Returns void

    eventNames

    • eventNames(): (string | symbol)[]
    • Returns (string | symbol)[]

    finally

    • finally(onfinally?: () => void): Promise<ResolveType>
    • Parameters

      • optionalonfinally: () => void

        Returns Promise<ResolveType>

      getMaxListeners

      • getMaxListeners(): number
      • Returns number

      listenerCount

      • listenerCount<K>(eventName: K): number
      • Type parameters

        • K: string

        Parameters

        • eventName: K

        Returns number

      listeners

      • listeners<K>(eventName: K): (...args: any[]) => void[]
      • Type parameters

        • K: string

        Parameters

        • eventName: K

        Returns (...args: any[]) => void[]

      off

      • Type parameters

        • K: string

        Parameters

        Returns void

      on

      • Type parameters

        • K: string

        Parameters

        Returns this

      once

      • Type parameters

        • K: string

        Parameters

        Returns this

      removeAllListeners

      • Returns EventEmitter

      setMaxListenerWarningThreshold

      • setMaxListenerWarningThreshold(maxListenersWarningThreshold: number): void
      • Parameters

        • maxListenersWarningThreshold: number

        Returns void

      then

      • then<TResult1, TResult2>(onfulfilled?: (value: ResolveType) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: unknown) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>
      • Type parameters

        • TResult1 = ResolveType
        • TResult2 = never

        Parameters

        • optionalonfulfilled: (value: ResolveType) => TResult1 | PromiseLike<TResult1>
          • optionalonrejected: (reason: unknown) => TResult2 | PromiseLike<TResult2>

            Returns Promise<TResult1 | TResult2>