Skip to content

Commit

Permalink
FRIDGE-1409: Fix nullable options (#423)
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

* FRIDGE-1409: fix small bug
  • Loading branch information
agrukhal authored and GitHub Enterprise committed Aug 13, 2024
1 parent f328864 commit d7b299b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2.0.10
==========
Bug fixes
----------
- Made options for `setWorkerActivity` nullable



2.0.9
==========
Bug fixes
Expand Down
2 changes: 1 addition & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ 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: Record<string, any>): Promise<Worker>;
setWorkerActivity(workerSid: string, activitySid: string, options: ActivityOptions): Promise<Worker>;
setWorkerActivity(workerSid: string, activitySid: string, options?: ActivityOptions): Promise<Worker>;
}

interface WorkerEvents {
Expand Down

0 comments on commit d7b299b

Please sign in to comment.