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