Skip to content

Commit 702ad61

Browse files
agrukhalGitHub Enterprise
authored and
GitHub Enterprise
committed
FRIDGE-1409: add missing type fields (#422)
* 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
1 parent c82a280 commit 702ad61

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2.0.9
2+
==========
3+
Bug fixes
4+
----------
5+
- Fixed `setWorkerAttributes` and `setWorkerActivity` parameter types
6+
7+
18
2.0.8
29
==========
310
New Features

types.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export class Worker extends (EventEmitter as new () => TypedEmitter<WorkerEvents
3636

3737
export class Supervisor extends Worker {
3838
monitor(taskSid: string, reservationSid: string, extraParams: Object): Promise<void>;
39-
setWorkerAttributes(workerSid: string, attributes: string): Promise<Worker>;
40-
setWorkerActivity(workerSid: string, activitySid: string, options: Object): Promise<Worker>;
39+
setWorkerAttributes(workerSid: string, attributes: Record<string, any>): Promise<Worker>;
40+
setWorkerActivity(workerSid: string, activitySid: string, options: ActivityOptions): Promise<Worker>;
4141
}
4242

4343
interface WorkerEvents {

0 commit comments

Comments
 (0)