vuestic-ui
Version:
Vue 3 UI Framework
13 lines (12 loc) • 480 B
TypeScript
import { DateInputValue } from './../types';
import { Ref } from 'vue';
export declare const defaultParseDateFunction: (text: string) => Date;
export declare const useDateParser: (props: {
parse?: ((input: string, isValidRef?: Ref<boolean>) => DateInputValue) | undefined;
parseDate?: ((input: string) => Date) | undefined;
delimiter: string;
rangeDelimiter: string;
}) => {
parseDateInputValue: (text: string) => DateInputValue;
isValid: Ref<boolean>;
};