Skip to content

Commit

Permalink
FRIDGE-1409: add missing type fields (#422)
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

* FRIDGE-1409: fix: fixed attributes type for setWorkerAttributes and setWorkerActivity

* FRIDGE-1409: docs: changlelog update
  • Loading branch information
agrukhal authored and GitHub Enterprise committed Aug 12, 2024
1 parent c82a280 commit 702ad61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2.0.9
==========
Bug fixes
----------
- Fixed `setWorkerAttributes` and `setWorkerActivity` parameter types


2.0.8
==========
New Features
Expand Down
4 changes: 2 additions & 2 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +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>;
setWorkerAttributes(workerSid: string, attributes: Record<string, any>): Promise<Worker>;
setWorkerActivity(workerSid: string, activitySid: string, options: ActivityOptions): Promise<Worker>;
}

interface WorkerEvents {
Expand Down

0 comments on commit 702ad61

Please sign in to comment.