diff --git a/types/steam-client/index.d.ts b/types/steam-client/index.d.ts index ff69e39f46..97b386649c 100644 --- a/types/steam-client/index.d.ts +++ b/types/steam-client/index.d.ts @@ -7,7 +7,7 @@ /// /// -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(eventType: T, callback: CMEventCallback[T]): void; + on(eventType: T, callback: CMEventCallback[T]): this; } /**