Skip to main content

Web3PromiEvent <ResolveType, EventMap>

Hierarchy

Implements

  • Promise<ResolveType>

Index

Constructors

publicconstructor

Properties

public[toStringTag]

[toStringTag]: Promise = 'Promise'

Methods

publiccatch

  • 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>

    publicemit

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

      • K: string

      Parameters

      • eventName: K
      • params: EventMap[K]

      Returns void

    publiceventNames

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

    publicfinally

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

      • optionalonfinally: () => void

        Returns Promise<ResolveType>

      publicgetMaxListeners

      • getMaxListeners(): number
      • Returns number

      publiclistenerCount

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

        • K: string

        Parameters

        • eventName: K

        Returns number

      publiclisteners

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

        • K: string

        Parameters

        • eventName: K

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

      publicoff

      • Type parameters

        • K: string

        Parameters

        Returns void

      publicon

      • Type parameters

        • K: string

        Parameters

        Returns this

      publiconce

      • Type parameters

        • K: string

        Parameters

        Returns this

      publicremoveAllListeners

      • Returns EventEmitter

      publicsetMaxListenerWarningThreshold

      • setMaxListenerWarningThreshold(maxListenersWarningThreshold: number): void
      • Parameters

        • maxListenersWarningThreshold: number

        Returns void

      publicthen

      • 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>