Skip to content

Commit 5d7433b

Browse files
committed
chore: rebase branch
1 parent 299eb82 commit 5d7433b

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

examples/basic/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"start": "jiti ./index.ts",
1313
"spinner": "jiti ./spinner.ts",
1414
"spinner-ci": "npx cross-env CI=\"true\" jiti ./spinner-ci.ts",
15-
"changesets": "jiti ./changesets.ts",
1615
"workflow": "jiti ./workflow.ts"
1716
},
1817
"devDependencies": {
File renamed without changes.

examples/basic/workflow.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as p from '@clack/prompts';
66
.step('name', () => p.text({ message: 'What is your package name?' }))
77
.step('type', () =>
88
p.select({
9-
message: `Pick a project type:`,
9+
message: 'Pick a project type:',
1010
initialValue: 'ts',
1111
maxItems: 5,
1212
options: [

packages/prompts/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ export type PromptGroupAwaitedReturn<T> = Prettify<{
760760
[P in keyof T]: PromptAwaitedReturn<T[P]>;
761761
}>;
762762

763+
// biome-ignore lint/complexity/noBannedTypes: <explanation>
763764
export type PromptWithOptions<TResults, TResult, TOptions extends Record<string, unknown> = {}> = (
764765
opts: Prettify<
765766
{
@@ -769,7 +770,7 @@ export type PromptWithOptions<TResults, TResult, TOptions extends Record<string,
769770
) => TResult;
770771

771772
export type PromptGroup<T> = {
772-
[P in keyof T]: PromptWithOptions<Partial<Omit<T, P>>, void | Promise<T[P] | void>>;
773+
[P in keyof T]: PromptWithOptions<Partial<Omit<T, P>>, undefined | Promise<T[P] | undefined>>;
773774
};
774775

775776
export interface PromptGroupOptions<T> {
@@ -865,6 +866,7 @@ type WorkflowStep<TName extends string, TResults, TResult = unknown> = {
865866
condition?: PromptWithOptions<TResults, boolean>;
866867
};
867868

869+
// biome-ignore lint/complexity/noBannedTypes: <explanation>
868870
class WorkflowBuilder<TResults extends Record<string, unknown> = {}> {
869871
private results: TResults = {} as TResults;
870872
private steps: WorkflowStep<string, TResults>[] = [];

0 commit comments

Comments
 (0)