interface PropOptions<T, D> {
    default?: null | object | D | DefaultFactory<D>;
    required?: boolean;
    type?: null | true | PropType<T>;
    validator?(value: unknown, props: Data): boolean;
}

Type Parameters

  • T = any
  • D = T

Properties

default?: null | object | D | DefaultFactory<D>
required?: boolean
type?: null | true | PropType<T>

Methods

  • Parameters

    • value: unknown
    • props: Data

    Returns boolean