mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Extend event emitter
This commit is contained in:
parent
ad286caf2b
commit
ee4eaf0cff
4
types/steam-client/index.d.ts
vendored
4
types/steam-client/index.d.ts
vendored
@ -7,7 +7,7 @@
|
||||
/// <reference types="node" />
|
||||
/// <reference types="bytebuffer" />
|
||||
|
||||
export class CMClient {
|
||||
export class CMClient extends NodeJS.EventEmitter {
|
||||
/**
|
||||
* A boolean that indicates whether you are currently connected and the encryption handshake is complete.
|
||||
* 'connected' is emitted when it changes to true, and 'error' is emitted when it changes to false unless you called disconnect.
|
||||
@ -81,7 +81,7 @@ export class CMClient {
|
||||
|
||||
// Events
|
||||
|
||||
on<T extends keyof CMEventCallback>(eventType: T, callback: CMEventCallback[T]): void;
|
||||
on<T extends keyof CMEventCallback>(eventType: T, callback: CMEventCallback[T]): this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user