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 {