chore: rename type parameter as it's not a union

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-11-14 10:06:30 -07:00
parent 5483d43b0d
commit b402097db3
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -31,10 +31,10 @@ export type ActionContext<
secrets?: TaskSecrets;
workspacePath: string;
input: TActionInput;
checkpoint<U extends JsonValue | void>(opts: {
checkpoint<T extends JsonValue | void>(opts: {
key: string;
fn: () => Promise<U> | U;
}): Promise<U>;
fn: () => Promise<T> | T;
}): Promise<T>;
output(
name: keyof TActionOutput,
value: TActionOutput[keyof TActionOutput],
+3 -3
View File
@@ -38,10 +38,10 @@ export type ActionContext<
secrets?: TaskSecrets;
workspacePath: string;
input: TActionInput;
checkpoint<U extends JsonValue | void>(opts: {
checkpoint<T extends JsonValue | void>(opts: {
key: string;
fn: () => Promise<U> | U;
}): Promise<U>;
fn: () => Promise<T> | T;
}): Promise<T>;
output(
name: keyof TActionOutput,
value: TActionOutput[keyof TActionOutput],