chore: api-reports + revert optional key change

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-11-14 10:01:45 -07:00
parent e61d5ef286
commit 5483d43b0d
5 changed files with 9 additions and 16 deletions
+4 -4
View File
@@ -31,10 +31,10 @@ export type ActionContext<
secrets?: TaskSecrets;
workspacePath: string;
input: TActionInput;
checkpoint<U extends JsonValue>(
key: string,
fn: () => Promise<U>,
): Promise<U>;
checkpoint<U extends JsonValue | void>(opts: {
key: string;
fn: () => Promise<U> | U;
}): Promise<U>;
output(
name: keyof TActionOutput,
value: TActionOutput[keyof TActionOutput],
+1 -1
View File
@@ -39,7 +39,7 @@ export type ActionContext<
workspacePath: string;
input: TActionInput;
checkpoint<U extends JsonValue | void>(opts: {
key?: string;
key: string;
fn: () => Promise<U> | U;
}): Promise<U>;
output(