Skip to content

Type Alias: PromptGroup<T> ​

ts
type 
PromptGroup
<
T
> = {
[
P
in keyof
T
]: (
opts
: {
results
:
Prettify
<
Partial
<
PromptGroupAwaitedReturn
<
Omit
<
T
,
P
>>>>;
}) => undefined |
Promise
<
T
[
P
] | undefined>;
};

Defined in: node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:428

A group of prompts to be displayed sequentially, with each prompt receiving the results of all previous prompts in the group.

Type Parameters ​

Type Parameter

T

基于 MIT 许可证发布