Skip to content

Commit a9b7e61

Browse files
committed
Chore(@inquirer/testing): Simplify render types
1 parent 32db45e commit a9b7e61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/testing/src/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ class BufferedStream extends Stream.Writable {
4242
}
4343
}
4444

45-
export async function render<
46-
const Props,
47-
const Value,
48-
const TestedPrompt extends Prompt<Value, Props>,
49-
>(prompt: TestedPrompt, props: Props, options?: Context) {
45+
export async function render<const Props, const Value>(
46+
prompt: Prompt<Value, Props>,
47+
props: Props,
48+
options?: Context,
49+
) {
5050
const input = new MuteStream();
5151
input.unmute();
5252

0 commit comments

Comments
 (0)