Skip to content

Commit

Permalink
FRIDGE-1409: add missing type fields (#421)
Browse files Browse the repository at this point in the history
* FRIDGE-1409: fix: add missing type fields

* FRIDGE-1409: docs: updated CHANGELOG.md

* FRIDGE-1409: docs: updated CHANGELOG.md
  • Loading branch information
agrukhal authored and GitHub Enterprise committed Aug 9, 2024
1 parent dcdeab5 commit 87934a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2.0.8
==========
New Features
----------
- Added `setWorkerOfflineIfDisconnected` to WorkerOptions

Bug fixes
----------
- Added `setWorkerAttributes` and `setWorkerActivity` fields to Supervisor type declaration

2.0.7
==========
Maintenance
Expand Down
2 changes: 2 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export class Worker extends (EventEmitter as new () => TypedEmitter<WorkerEvents

export class Supervisor extends Worker {
monitor(taskSid: string, reservationSid: string, extraParams: Object): Promise<void>;
setWorkerAttributes(workerSid: string, attributes: string): Promise<Worker>;
setWorkerActivity(workerSid: string, activitySid: string, options: Object): Promise<Worker>;
}

interface WorkerEvents {
Expand Down

0 comments on commit 87934a6

Please sign in to comment.