Skip to content

Commit

Permalink
fix ts definitions, prepare 2.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Sep 14, 2021
1 parent 140950c commit fa2e218
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
=====

Expand Down
2 changes: 1 addition & 1 deletion dist/centrifuge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit fa2e218

Please sign in to comment.