From 2ee81a4199ba350af8d0065ca8132a25058ed40e Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sun, 4 Jun 2023 11:48:15 -0400 Subject: [PATCH] fix: update imported class name --- legacy/src/tools/feedback.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/legacy/src/tools/feedback.ts b/legacy/src/tools/feedback.ts index fffb0ccf..a76e2a5c 100644 --- a/legacy/src/tools/feedback.ts +++ b/legacy/src/tools/feedback.ts @@ -4,7 +4,7 @@ import select from '@inquirer/select' import { ZodTypeAny, z } from 'zod' import * as types from '../types' -import { BaseTaskCallBuilder } from '../task' +import { BaseTask } from '../task' /** * Actions the user can take in the feedback selection prompt. @@ -58,9 +58,10 @@ export const FeedbackSingleOutputSchema = (result: T) => /** * Prompt the user to accept, edit, or decline a single input. */ -export class HumanFeedbackSingle< - T extends ZodTypeAny -> extends BaseTaskCallBuilder { +export class HumanFeedbackSingle extends BaseTask< + ZodTypeAny, + ZodTypeAny +> { private choiceSchema: T constructor(choiceSchema: T) { @@ -141,9 +142,10 @@ export const FeedbackSelectOutputSchema = (result: T) => /** * Prompt the user to accept, select from, edit, or decline a list of inputs. */ -export class HumanFeedbackSelect< - T extends ZodTypeAny -> extends BaseTaskCallBuilder { +export class HumanFeedbackSelect extends BaseTask< + ZodTypeAny, + ZodTypeAny +> { private choiceSchema: T constructor(choiceSchema: T) {