diff --git a/CHANGELOG.md b/CHANGELOG.md index 95134627..0e435812 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +2.8.2 +===== + +* Fix TypeScript definitions for subscribe (`A rest parameter must be last in a parameter list.`). + 2.8.1 ===== diff --git a/dist/centrifuge.d.ts b/dist/centrifuge.d.ts index b6bfad75..dc612178 100644 --- a/dist/centrifuge.d.ts +++ b/dist/centrifuge.d.ts @@ -50,7 +50,7 @@ declare class Centrifuge extends EventEmitter { stopBatching(): void; startSubscribeBatching(): void; stopSubscribeBatching(): void; - subscribe(channel: string, events?: (...args: any[], opts?: Centrifuge.SubscribeOptions) => void): Centrifuge.Subscription; + subscribe(channel: string, events?: (...args: any[]) => void, opts?: Centrifuge.SubscribeOptions): Centrifuge.Subscription; subscribe(channel: string, events?: Centrifuge.SubscriptionEvents, opts?: Centrifuge.SubscribeOptions): Centrifuge.Subscription; } diff --git a/package.json b/package.json index a6f5b5cc..e6a372fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "centrifuge", - "version": "2.8.1", + "version": "2.8.2", "description": "Centrifuge and Centrifugo client for NodeJS and browser", "main": "dist/centrifuge.js", "types": "dist/centrifuge.d.ts",