Enable filtering by creation date with datepicker (#131)

Enable to filter by date with datepicker
This commit is contained in:
Charles Bochet
2023-05-19 13:17:32 +02:00
committed by GitHub
parent 192b89a7b7
commit 5adc5b833c
7 changed files with 149 additions and 71 deletions

View File

@ -14,6 +14,13 @@ export type FilterConfigType<
key: string;
label: string;
icon: ReactNode;
type: WhereType extends UnknownType
? 'relation' | 'text' | 'date'
: WhereType extends AnyEntity
? 'relation'
: WhereType extends string
? 'text' | 'date'
: never;
operands: FilterOperandType<FilteredType, WhereType>[];
} & (WhereType extends UnknownType
? { searchConfig?: SearchConfigType<UnknownType> }