refactor: add type
This commit is contained in:
parent
cc7d6b0a24
commit
e0f8f49fda
1 changed files with 18 additions and 0 deletions
|
|
@ -69,10 +69,28 @@ export interface Attributes {
|
|||
additional: {
|
||||
fieldName: string | null;
|
||||
type: AdditionalType | null;
|
||||
ability?: Record<AdditionalType, Ability[AdditionalType]>;
|
||||
}[];
|
||||
}
|
||||
|
||||
export interface Ability {
|
||||
string?: {
|
||||
phoneNumber: {
|
||||
length: number;
|
||||
};
|
||||
};
|
||||
number?: {
|
||||
comma?: boolean;
|
||||
decimal?: {
|
||||
point: number;
|
||||
};
|
||||
};
|
||||
date?: string | null;
|
||||
array?: string[] | null;
|
||||
}
|
||||
|
||||
export type AdditionalType = 'string' | 'number' | 'date' | 'array';
|
||||
|
||||
// Product
|
||||
|
||||
export interface ServiceById {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue