Skip to content
6 changes: 3 additions & 3 deletions examples/basic/date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import color from 'picocolors';
async function main() {
const result = (await p.date({
message: color.magenta('Pick a date'),
format: 'YYYY/MM/DD',
minDate: new Date('2025-01-01'),
maxDate: new Date('2025-12-31'),
format: 'YMD',
minDate: new Date('2026-01-01'),
maxDate: new Date('2026-12-31'),
})) as Date;

if (p.isCancel(result)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export type { AutocompleteOptions } from './prompts/autocomplete.js';
export { default as AutocompletePrompt } from './prompts/autocomplete.js';
export type { ConfirmOptions } from './prompts/confirm.js';
export { default as ConfirmPrompt } from './prompts/confirm.js';
export type { DateFormatConfig, DateOptions, DateParts } from './prompts/date.js';
export type { DateFormat, DateOptions, DateParts } from './prompts/date.js';
export { default as DatePrompt } from './prompts/date.js';
export type { GroupMultiSelectOptions } from './prompts/group-multiselect.js';
export { default as GroupMultiSelectPrompt } from './prompts/group-multiselect.js';
Expand Down
Loading
Loading