chore: rename for consistency

This commit is contained in:
Songkeys
2023-04-04 00:00:49 +08:00
parent 1dec7d5a6b
commit a43d6e55d0

View File

@@ -1,26 +1,26 @@
import Joi from "joi"; import Joi from "joi";
import { Semantics } from "./Semantics"; import { Semantics } from "./Semantics";
export type FieldDataDetectorType = export type PKDataDetectorType =
| "PKDataDetectorTypePhoneNumber" | "PKDataDetectorTypePhoneNumber"
| "PKDataDetectorTypeLink" | "PKDataDetectorTypeLink"
| "PKDataDetectorTypeAddress" | "PKDataDetectorTypeAddress"
| "PKDataDetectorTypeCalendarEvent"; | "PKDataDetectorTypeCalendarEvent";
export type FieldTextAlignment = export type PKTextAlignmentType =
| "PKTextAlignmentLeft" | "PKTextAlignmentLeft"
| "PKTextAlignmentCenter" | "PKTextAlignmentCenter"
| "PKTextAlignmentRight" | "PKTextAlignmentRight"
| "PKTextAlignmentNatural"; | "PKTextAlignmentNatural";
export type FieldDateStyle = export type PKDateStyleType =
| "PKDateStyleNone" | "PKDateStyleNone"
| "PKDateStyleShort" | "PKDateStyleShort"
| "PKDateStyleMedium" | "PKDateStyleMedium"
| "PKDateStyleLong" | "PKDateStyleLong"
| "PKDateStyleFull"; | "PKDateStyleFull";
export type FieldNumberStyle = export type PKNumberStyleType =
| "PKNumberStyleDecimal" | "PKNumberStyleDecimal"
| "PKNumberStylePercent" | "PKNumberStylePercent"
| "PKNumberStyleScientific" | "PKNumberStyleScientific"
@@ -33,18 +33,18 @@ export type FieldNumberStyle =
export interface Field { export interface Field {
attributedValue?: string | number | Date; attributedValue?: string | number | Date;
changeMessage?: string; changeMessage?: string;
dataDetectorTypes?: FieldDataDetectorType[]; dataDetectorTypes?: PKDataDetectorType[];
label?: string; label?: string;
textAlignment?: FieldTextAlignment; textAlignment?: PKTextAlignmentType;
key: string; key: string;
value: string | number | Date; value: string | number | Date;
semantics?: Semantics; semantics?: Semantics;
dateStyle?: FieldDateStyle; dateStyle?: PKDateStyleType;
ignoresTimeZone?: boolean; ignoresTimeZone?: boolean;
isRelative?: boolean; isRelative?: boolean;
timeStyle?: string; timeStyle?: string;
currencyCode?: string; currencyCode?: string;
numberStyle?: FieldNumberStyle; numberStyle?: PKNumberStyleType;
} }
export interface FieldWithRow extends Field { export interface FieldWithRow extends Field {