vue-ts-types
Version:
Lightweight TypeScript-first Vue prop type definitions
9 lines (8 loc) • 407 B
TypeScript
import type { PropOptionsGenerator } from '../types';
import type { Validator } from '../validators';
/**
* Allows any `Date` object (validated at runtime and compile time).
*
* @param validator - Optional function for further runtime validation; should return `undefined` if valid, or an error string if invalid.
*/
export declare const dateProp: (validator?: Validator) => PropOptionsGenerator<Date>;