Fixed typos on field's property names - Closes #76

This commit is contained in:
Alexander Cerutti
2021-06-17 19:58:12 +02:00
parent d9e4ef7dba
commit 87321b8dc9

View File

@@ -371,14 +371,14 @@ const barcode = Joi.object().keys({
export interface Field {
attributedValue?: string | number | Date;
changeMessage?: string;
dataDetectorType?: string[];
dataDetectorTypes?: string[];
label?: string;
textAlignment?: string;
key: string;
value: string | number | Date;
semantics?: Semantics;
dateStyle?: string;
ignoreTimeZone?: boolean;
ignoresTimeZone?: boolean;
isRelative?: boolean;
timeStyle?: string;
currencyCode?: string;
@@ -392,7 +392,7 @@ const field = Joi.object().keys({
Joi.date().iso(),
),
changeMessage: Joi.string(),
dataDetectorType: Joi.array().items(
dataDetectorTypes: Joi.array().items(
Joi.string().regex(
/(PKDataDetectorTypePhoneNumber|PKDataDetectorTypeLink|PKDataDetectorTypeAddress|PKDataDetectorTypeCalendarEvent)/,
"dataDetectorType",
@@ -415,7 +415,7 @@ const field = Joi.object().keys({
/(PKDateStyleNone|PKDateStyleShort|PKDateStyleMedium|PKDateStyleLong|PKDateStyleFull)/,
"date style",
),
ignoreTimeZone: Joi.boolean(),
ignoresTimeZone: Joi.boolean(),
isRelative: Joi.boolean(),
timeStyle: Joi.string().regex(
/(PKDateStyleNone|PKDateStyleShort|PKDateStyleMedium|PKDateStyleLong|PKDateStyleFull)/,