From a43d6e55d0dedb1cd7a8be878e48e9af6df930db Mon Sep 17 00:00:00 2001 From: Songkeys Date: Tue, 4 Apr 2023 00:00:49 +0800 Subject: [PATCH] chore: rename for consistency --- src/schemas/Field.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/schemas/Field.ts b/src/schemas/Field.ts index cde28e6..f9852a3 100644 --- a/src/schemas/Field.ts +++ b/src/schemas/Field.ts @@ -1,26 +1,26 @@ import Joi from "joi"; import { Semantics } from "./Semantics"; -export type FieldDataDetectorType = +export type PKDataDetectorType = | "PKDataDetectorTypePhoneNumber" | "PKDataDetectorTypeLink" | "PKDataDetectorTypeAddress" | "PKDataDetectorTypeCalendarEvent"; -export type FieldTextAlignment = +export type PKTextAlignmentType = | "PKTextAlignmentLeft" | "PKTextAlignmentCenter" | "PKTextAlignmentRight" | "PKTextAlignmentNatural"; -export type FieldDateStyle = +export type PKDateStyleType = | "PKDateStyleNone" | "PKDateStyleShort" | "PKDateStyleMedium" | "PKDateStyleLong" | "PKDateStyleFull"; -export type FieldNumberStyle = +export type PKNumberStyleType = | "PKNumberStyleDecimal" | "PKNumberStylePercent" | "PKNumberStyleScientific" @@ -33,18 +33,18 @@ export type FieldNumberStyle = export interface Field { attributedValue?: string | number | Date; changeMessage?: string; - dataDetectorTypes?: FieldDataDetectorType[]; + dataDetectorTypes?: PKDataDetectorType[]; label?: string; - textAlignment?: FieldTextAlignment; + textAlignment?: PKTextAlignmentType; key: string; value: string | number | Date; semantics?: Semantics; - dateStyle?: FieldDateStyle; + dateStyle?: PKDateStyleType; ignoresTimeZone?: boolean; isRelative?: boolean; timeStyle?: string; currencyCode?: string; - numberStyle?: FieldNumberStyle; + numberStyle?: PKNumberStyleType; } export interface FieldWithRow extends Field {