From e0f8f49fda6f06b344d7c8706a9c6d4248dfb363 Mon Sep 17 00:00:00 2001 From: Net Date: Thu, 25 Jul 2024 11:07:28 +0700 Subject: [PATCH] refactor: add type --- src/stores/product-service/types.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/stores/product-service/types.ts b/src/stores/product-service/types.ts index 41b0ef9e..6324a9e4 100644 --- a/src/stores/product-service/types.ts +++ b/src/stores/product-service/types.ts @@ -69,10 +69,28 @@ export interface Attributes { additional: { fieldName: string | null; type: AdditionalType | null; + ability?: Record; }[]; } +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 {