+ unit test

Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
bnechyporenko
2024-02-11 23:14:05 +01:00
parent fb07d87c0d
commit f94cd8bf3e
8 changed files with 131 additions and 129 deletions
+9 -11
View File
@@ -351,17 +351,15 @@ export interface TaskContext {
// (undocumented)
getTaskState?(): Promise<
| {
state: {
[key: string]:
| {
status: 'failed';
reason: string;
}
| {
status: 'success';
value: JsonValue;
};
};
[key: string]:
| {
status: 'failed';
reason: string;
}
| {
status: 'success';
value: JsonValue;
};
}
| undefined
>;
+6 -8
View File
@@ -128,14 +128,12 @@ export interface TaskContext {
getTaskState?(): Promise<
| {
state: {
[key: string]:
| { status: 'failed'; reason: string }
| {
status: 'success';
value: JsonValue;
};
};
[key: string]:
| { status: 'failed'; reason: string }
| {
status: 'success';
value: JsonValue;
};
}
| undefined
>;