UNPKG

vue-ts-types

Version:

Lightweight TypeScript-first Vue prop type definitions

10 lines (9 loc) 478 B
import type { PropOptionsGenerator } from '../types'; import type { Validator } from '../validators'; /** * Allows any type. No built-in runtime validation is performed by default. * * @template T - can be used to restrict the type at compile time. * @param validator - Optional function for runtime validation; should return `undefined` if valid, or an error string if invalid. */ export declare const anyProp: <T = any>(validator?: Validator) => PropOptionsGenerator<T>;