Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
terkelg committed Nov 10, 2019
1 parent 74abb96 commit 540b005
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ let interval;
initial: `terkelg`,
format: v => `@${v}`
},
{
type: 'date',
name: 'birthday',
message: `What's your birth day?`,
validate: date => date > Date.now() ? `Your birth day can't be in the future` : true
},
{
type: 'number',
name: 'age',
Expand Down Expand Up @@ -62,6 +56,7 @@ let interval;
type: 'multiselect',
name: 'multicolor',
message: 'Pick colors',
hint: false,
choices: [
{ title: 'Red', description: 'This option has a description.', value: '#ff0000' },
{ title: 'Green', value: '#00ff00' },
Expand Down Expand Up @@ -90,6 +85,12 @@ let interval;
value: 'fallback'
}
},
{
type: 'date',
name: 'birthday',
message: `What's your birthday?`,
validate: date => date > Date.now() ? `Your birth day can't be in the future` : true
},
{
type: 'number',
name: 'prompt',
Expand Down

0 comments on commit 540b005

Please sign in to comment.