Skip to content

Commit

Permalink
Chore(@inquirer/testing): Simplify render types
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Jan 11, 2025
1 parent 32db45e commit a9b7e61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/testing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ class BufferedStream extends Stream.Writable {
}
}

export async function render<
const Props,
const Value,
const TestedPrompt extends Prompt<Value, Props>,
>(prompt: TestedPrompt, props: Props, options?: Context) {
export async function render<const Props, const Value>(
prompt: Prompt<Value, Props>,
props: Props,
options?: Context,
) {
const input = new MuteStream();
input.unmute();

Expand Down

0 comments on commit a9b7e61

Please sign in to comment.