From b402097db32750d5028bae2cad00cbe0e0b48f5a Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 14 Nov 2024 10:06:30 -0700 Subject: [PATCH] chore: rename type parameter as it's not a union Signed-off-by: blam --- plugins/scaffolder-node/report.api.md | 6 +++--- plugins/scaffolder-node/src/actions/types.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/scaffolder-node/report.api.md b/plugins/scaffolder-node/report.api.md index c7552a2eb6..c14a689d1a 100644 --- a/plugins/scaffolder-node/report.api.md +++ b/plugins/scaffolder-node/report.api.md @@ -31,10 +31,10 @@ export type ActionContext< secrets?: TaskSecrets; workspacePath: string; input: TActionInput; - checkpoint(opts: { + checkpoint(opts: { key: string; - fn: () => Promise | U; - }): Promise; + fn: () => Promise | T; + }): Promise; output( name: keyof TActionOutput, value: TActionOutput[keyof TActionOutput], diff --git a/plugins/scaffolder-node/src/actions/types.ts b/plugins/scaffolder-node/src/actions/types.ts index 90a8a741b0..5dd9d5526f 100644 --- a/plugins/scaffolder-node/src/actions/types.ts +++ b/plugins/scaffolder-node/src/actions/types.ts @@ -38,10 +38,10 @@ export type ActionContext< secrets?: TaskSecrets; workspacePath: string; input: TActionInput; - checkpoint(opts: { + checkpoint(opts: { key: string; - fn: () => Promise | U; - }): Promise; + fn: () => Promise | T; + }): Promise; output( name: keyof TActionOutput, value: TActionOutput[keyof TActionOutput],