Skip to content

Commit 6e8755d

Browse files
committed
added explicit return types
1 parent 77ebec1 commit 6e8755d

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/cli-v3/src/apiClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ export class CliApiClient {
121121
);
122122
}
123123

124-
async createTaskRunAttempt(runFriendlyId: string) {
124+
async createTaskRunAttempt(
125+
runFriendlyId: string
126+
): Promise<ApiResult<z.infer<typeof TaskRunExecution>>> {
125127
if (!this.accessToken) {
126128
throw new Error("creatTaskRunAttempt: No access token");
127129
}

packages/cli-v3/src/dev/backgroundWorker.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ export class BackgroundWorkerCoordinator {
127127
});
128128
}
129129

130-
async executeTaskRun(id: string, payload: TaskRunExecutionPayload, messageId: string) {
130+
async executeTaskRun(
131+
id: string,
132+
payload: TaskRunExecutionPayload,
133+
messageId: string
134+
): Promise<TaskRunExecutionResult | undefined> {
131135
const worker = this._backgroundWorkers.get(id);
132136

133137
if (!worker) {

packages/cli-v3/src/executions/taskRunProcess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class TaskRunProcess {
110110
return this.options.payload.execution.run.isTest;
111111
}
112112

113-
get payload() {
113+
get payload(): TaskRunExecutionPayload {
114114
return this.options.payload;
115115
}
116116

0 commit comments

Comments
 (0)