Skip to content

Commit afaa200

Browse files
committed
fix(cli): update validatePath signature for @clack/prompts v1
1 parent ccf31c0 commit afaa200

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/cli/src/handlers/init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ function collapseTilde(path: string): string {
6161
return path;
6262
}
6363

64-
function validatePath(value: string): string | undefined {
65-
if (!value.trim()) {
64+
function validatePath(value: string | undefined): string | Error | undefined {
65+
if (!value?.trim()) {
6666
return "Path cannot be empty";
6767
}
6868
return undefined;

0 commit comments

Comments
 (0)