Skip to content

Commit

Permalink
feat: filter typing improved
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Aug 30, 2024
1 parent b7bc911 commit 44e53fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 202 files
4 changes: 2 additions & 2 deletions src/plugins/filter/filter.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export type LogicFunctionExtraParam =
| string
| string[]
| number[];
export type LogicFunction = {
(value: LogicFunctionParam, extra?: LogicFunctionExtraParam): boolean;
export type LogicFunction<T1 = LogicFunctionParam, T2 = LogicFunctionExtraParam> = {
(value: T1, extra?: T2): boolean;
extra?: ExtraField;
};

Expand Down

0 comments on commit 44e53fb

Please sign in to comment.