Orderly SDKs / Modules / @orderly.network/core / EventEmitter

Namespace: EventEmitter

@orderly.network/core.EventEmitter

Table of contents

Interfaces

Type Aliases

Variables

Type Aliases

ArgumentMap

Ƭ ArgumentMap<T>: { [K in keyof T]: T[K] extends Function ? Parameters<T[K]> : T[K] extends any[] ? T[K] : any[] }

Type parameters

NameType
Textends object

Defined in

node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts:109


EventArgs

Ƭ EventArgs<T, K>: Parameters<EventListener<T, K>>

Type parameters

NameType
Textends ValidEventTypes
Kextends EventNames<T>

Defined in

node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts:126


EventListener

Ƭ EventListener<T, K>: T extends string | symbol ? (…args: any[]) => void : (…args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]) => void

Type parameters

NameType
Textends ValidEventTypes
Kextends EventNames<T>

Defined in

node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts:117


EventNames

Ƭ EventNames<T>: T extends string | symbol ? T : keyof T

Type parameters

NameType
Textends ValidEventTypes

Defined in

node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts:105


ValidEventTypes

Ƭ ValidEventTypes: string | symbol | object

object should be in either of the following forms:

interface EventTypes {
  'event-with-parameters': any[]
  'event-with-example-handler': (...args: any[]) => void
}

Defined in

node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts:103

Variables

EventEmitter

Const EventEmitter: EventEmitterStatic

Defined in

node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.d.ts:131