Skip to content

Commit a3c770c

Browse files
committed
chore: rebase branch
1 parent eb80348 commit a3c770c

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-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: [

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"stub": "pnpm -r run build --stub",
77
"build": "pnpm --filter \"@clack/*\" run build",
88
"start": "pnpm run dev",
9+
"dev": "pnpm --filter @example/changesets run start",
910
"format": "biome check --write",
1011
"lint": "biome lint --write --unsafe",
1112
"type-check": "biome lint && tsc",

packages/prompts/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ export type PromptGroupAwaitedReturn<T> = Prettify<{
784784
[P in keyof T]: PromptAwaitedReturn<T[P]>;
785785
}>;
786786

787+
// biome-ignore lint/complexity/noBannedTypes: <explanation>
787788
export type PromptWithOptions<TResults, TResult, TOptions extends Record<string, unknown> = {}> = (
788789
opts: Prettify<
789790
{
@@ -793,7 +794,7 @@ export type PromptWithOptions<TResults, TResult, TOptions extends Record<string,
793794
) => TResult;
794795

795796
export type PromptGroup<T> = {
796-
[P in keyof T]: PromptWithOptions<Partial<Omit<T, P>>, void | Promise<T[P] | void>>;
797+
[P in keyof T]: PromptWithOptions<Partial<Omit<T, P>>, undefined | Promise<T[P] | undefined>>;
797798
};
798799

799800
export interface PromptGroupOptions<T> {
@@ -889,6 +890,7 @@ type WorkflowStep<TName extends string, TResults, TResult = unknown> = {
889890
condition?: PromptWithOptions<TResults, boolean>;
890891
};
891892

893+
// biome-ignore lint/complexity/noBannedTypes: <explanation>
892894
class WorkflowBuilder<TResults extends Record<string, unknown> = {}> {
893895
private results: TResults = {} as TResults;
894896
private steps: WorkflowStep<string, TResults>[] = [];

0 commit comments

Comments
 (0)