Skip to content

Commit 45b6f29

Browse files
committed
Revert example
1 parent fafbc21 commit 45b6f29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/basic/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ async function main() {
1515
p.text({
1616
message: 'Where should we create your project?',
1717
placeholder: './sparkling-solid',
18-
validate: async (value) => {
19-
await setTimeout(299);
18+
validate: (value) => {
2019
if (!value) return 'Please enter a path.';
2120
if (value[0] !== '.') return 'Please enter a relative path.';
2221
},

0 commit comments

Comments
 (0)