UNPKG

v-datepicker-lite

Version:

A lightweight Vue 3 date picker with date, time, date-time, week, and month modes

47 lines (45 loc) 1.73 kB
import { DatePickerProps } from '../types'; interface Props extends DatePickerProps { } declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, { mode: string; format: string; timeFormat: string; timeInterval: number; }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "update:value": (value: string | Date) => void; change: (value: string | Date) => void; select: (value: string | Date) => void; }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, { mode: string; format: string; timeFormat: string; timeInterval: number; }>>> & Readonly<{ onSelect?: (value: string | Date) => any; "onUpdate:value"?: (value: string | Date) => any; onChange?: (value: string | Date) => any; }>, { timeFormat: "12h" | "24h"; timeInterval: 15 | 30 | 60; mode: "date" | "time" | "dateTime" | "week" | "month"; format: string; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>; export default _default; type __VLS_NonUndefinedable<T> = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? { type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>; } : { type: import('vue').PropType<T[K]>; required: true; }; }; type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & { default: D[K]; }> : P[K]; }; type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {};