Skip to content

Commit 540b005

Browse files
committedNov 10, 2019
Update example
1 parent 74abb96 commit 540b005

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎example.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ let interval;
1313
initial: `terkelg`,
1414
format: v => `@${v}`
1515
},
16-
{
17-
type: 'date',
18-
name: 'birthday',
19-
message: `What's your birth day?`,
20-
validate: date => date > Date.now() ? `Your birth day can't be in the future` : true
21-
},
2216
{
2317
type: 'number',
2418
name: 'age',
@@ -62,6 +56,7 @@ let interval;
6256
type: 'multiselect',
6357
name: 'multicolor',
6458
message: 'Pick colors',
59+
hint: false,
6560
choices: [
6661
{ title: 'Red', description: 'This option has a description.', value: '#ff0000' },
6762
{ title: 'Green', value: '#00ff00' },
@@ -90,6 +85,12 @@ let interval;
9085
value: 'fallback'
9186
}
9287
},
88+
{
89+
type: 'date',
90+
name: 'birthday',
91+
message: `What's your birthday?`,
92+
validate: date => date > Date.now() ? `Your birth day can't be in the future` : true
93+
},
9394
{
9495
type: 'number',
9596
name: 'prompt',

0 commit comments

Comments
 (0)
Please sign in to comment.