graphql-tools-monorepo / federation/src / EventEmitter
Class: EventEmitter<T>
federation/src.EventEmitter
Type parameters
Name | Type |
---|---|
T | extends EventMap <T > |
Hierarchy
-
EventEmitter
Table of contents
Constructors
Methods
Constructors
constructor
• new EventEmitter<T
>(): EventEmitter
<T
>
Type parameters
Name | Type |
---|---|
T | extends EventMap <T > |
Returns
EventEmitter
<T
>
Methods
emit
▸ emit<K
>(eventName
, ...args
): boolean
Type parameters
Name | Type |
---|---|
K | extends string | number | symbol |
Parameters
Name | Type |
---|---|
eventName | K |
...args | T [K ] |
Returns
boolean
Defined in
packages/federation/src/utils.ts:214
off
▸ off<K
>(eventName
, listener
): this
Type parameters
Name | Type |
---|---|
K | extends string | number | symbol |
Parameters
Name | Type |
---|---|
eventName | K |
listener | (…args : T [K ]) => void |
Returns
this
Defined in
packages/federation/src/utils.ts:205
on
▸ on<K
>(eventName
, listener
): this
Type parameters
Name | Type |
---|---|
K | extends string | number | symbol |
Parameters
Name | Type |
---|---|
eventName | K |
listener | (…args : T [K ]) => void |
Returns
this
Defined in
packages/federation/src/utils.ts:186
once
▸ once<K
>(eventName
, listener
): this
Type parameters
Name | Type |
---|---|
K | extends string | number | symbol |
Parameters
Name | Type |
---|---|
eventName | K |
listener | (…args : T [K ]) => void |
Returns
this