Made "checkpoint" on scaffolder action context non-optional (#23291)

* Made "checkpoint" on scaffolder action context non-optional
Signed-off-by: bnechyporenko <bnechyporenko@bol.com>
This commit is contained in:
Bogdan Nechyporenko
2024-02-29 10:41:34 +01:00
committed by GitHub
parent b130eb36b4
commit bbd1fe19ab
5 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export type ActionContext<
secrets?: TaskSecrets;
workspacePath: string;
input: TActionInput;
checkpoint?<U extends JsonValue>(
checkpoint<U extends JsonValue>(
key: string,
fn: () => Promise<U>,
): Promise<U>;
+1 -1
View File
@@ -35,7 +35,7 @@ export type ActionContext<
secrets?: TaskSecrets;
workspacePath: string;
input: TActionInput;
checkpoint?<U extends JsonValue>(
checkpoint<U extends JsonValue>(
key: string,
fn: () => Promise<U>,
): Promise<U>;