Skip to content

Commit

Permalink
feat: Types issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chavda-bhavik committed Oct 23, 2024
1 parent 84f09d2 commit 2b4d59b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export interface ISchemaItem {
| '<<false>>';
selectValues?: string[];
dateFormats?: string[];
type?: keyof typeof ColumnTypes;
type?: ValueOf<typeof ColumnTypes>;
regex?: string;
allowMultiSelect?: boolean;
validations?: ValidationType[];
Expand Down Expand Up @@ -176,6 +176,8 @@ export type DeepPartial<T> = T extends object
}
: T;

export type ValueOf<T> = T[keyof T];

export type CustomTexts = DeepPartial<typeof WIDGET_TEXTS>;

export interface IUseImplerProps {
Expand Down

0 comments on commit 2b4d59b

Please # to comment.