Skip to content

Commit

Permalink
Add type test
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 22, 2020
1 parent 1040f62 commit cf059e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ new Enquirer();
new Enquirer.Prompt();
new Enquirer.Prompt({ name: 'test', type: 'text', message: '' });

const choice: Enquirer.Choice = { name: 'hello world' };

Enquirer
.prompt({ name: 'test', type: 'text', message: '' })
.then(answer => answer);
Expand Down

0 comments on commit cf059e0

Please sign in to comment.