Skip to content

Commit d7b299b

Browse files
agrukhalGitHub Enterprise
authored and
GitHub Enterprise
committed
FRIDGE-1409: Fix nullable options (#423)
* 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
1 parent f328864 commit d7b299b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2.0.10
2+
==========
3+
Bug fixes
4+
----------
5+
- Made options for `setWorkerActivity` nullable
6+
7+
8+
19
2.0.9
210
==========
311
Bug fixes

types.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class Worker extends (EventEmitter as new () => TypedEmitter<WorkerEvents
3737
export class Supervisor extends Worker {
3838
monitor(taskSid: string, reservationSid: string, extraParams: Object): Promise<void>;
3939
setWorkerAttributes(workerSid: string, attributes: Record<string, any>): Promise<Worker>;
40-
setWorkerActivity(workerSid: string, activitySid: string, options: ActivityOptions): Promise<Worker>;
40+
setWorkerActivity(workerSid: string, activitySid: string, options?: ActivityOptions): Promise<Worker>;
4141
}
4242

4343
interface WorkerEvents {

0 commit comments

Comments
 (0)