add filters types to src/components/fiedls

This commit is contained in:
Sidney Alcantara
2021-10-01 12:08:58 +10:00
parent cf529e7263
commit 68bb3a72e3

View File

@@ -21,6 +21,7 @@ export interface IFieldConfig {
TableEditor: React.ComponentType<EditorProps<any, any>>;
SideDrawerField: React.ComponentType<ISideDrawerFieldProps>;
settings?: React.ComponentType<ISettingsProps>;
filters?: React.ComponentType<IFiltersProps>;
csvExportFormatter?: (value: any, config?: any) => string;
csvImportParser?: (value: string, config?: any) => any;
}
@@ -59,3 +60,9 @@ export interface ISettingsProps {
tables: any;
[key: string]: any;
}
// TODO: WRITE TYPES
export interface IFiltersProps {
handleChange: (key: string) => (value: any) => void;
[key: string]: any;
}