From 2b4d59bba5b45ee586576a83352a189d5e230461 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Wed, 23 Oct 2024 14:19:22 +0530 Subject: [PATCH] feat: Types issue --- packages/client/src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/types.ts b/packages/client/src/types.ts index d31bd022..6d9e5346 100644 --- a/packages/client/src/types.ts +++ b/packages/client/src/types.ts @@ -115,7 +115,7 @@ export interface ISchemaItem { | '<>'; selectValues?: string[]; dateFormats?: string[]; - type?: keyof typeof ColumnTypes; + type?: ValueOf; regex?: string; allowMultiSelect?: boolean; validations?: ValidationType[]; @@ -176,6 +176,8 @@ export type DeepPartial = T extends object } : T; +export type ValueOf = T[keyof T]; + export type CustomTexts = DeepPartial; export interface IUseImplerProps {