ArraySchemaOptionsinterface
{
readonly value?: ImmutableArray;
readonly items: Schema<T>;
readonly min?: number;
readonly max?: number;
readonly unique?: boolean;
readonly separator?: string | RegExp;
}| Property | Type | |
|---|---|---|
.value | ImmutableArray | Default value used when the input is undefined. Defaults to [] readonly |
.items | Schema<T> | Schema every item in the array must conform to. required readonly |
.min | number | Minimum number of items. Defaults to 0 readonly |
.max | number | Maximum number of items. Defaults to Number.POSITIVE_INFINITY readonly |
.unique | boolean | Whether to deduplicate the items. Defaults to false readonly |
.separator | stringRegExp | String or RegExp used to split a string input into items. Defaults to "," readonly |
Options for ArraySchema.