YearConstraints
Defined in: core/build/field/types/Year.d.ts:14
Year-specific constraints
Extends
Section titled “Extends”BaseConstraints
Properties
Section titled “Properties”
optionalenum:string[] |number[]
Defined in: core/build/field/types/Year.d.ts:27
Restrict values to a specified set of years Can be an array of numbers or strings that parse to years
maximum?
Section titled “maximum?”
optionalmaximum:number
Defined in: core/build/field/types/Year.d.ts:22
Maximum allowed year
minimum?
Section titled “minimum?”
optionalminimum:number
Defined in: core/build/field/types/Year.d.ts:18
Minimum allowed year
required?
Section titled “required?”
optionalrequired:boolean
Defined in: core/build/field/types/Base.d.ts:51
Indicates if field is allowed to be null/empty
Inherited from
Section titled “Inherited from”BaseConstraints.required
unique?
Section titled “unique?”
optionalunique:boolean
Defined in: core/build/field/types/Base.d.ts:55
Indicates if values must be unique within the column
Inherited from
Section titled “Inherited from”BaseConstraints.unique