Skip to content

Commit 50592e8

Browse files
committed
Add operator param to Field comparator function property
1 parent 1b034bb commit 50592e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface Field {
2626
placeholder?: string; // Value to be displayed in the placeholder of the text field
2727
validator?: RuleValidator; // Called when a rule specifies this field
2828
valueSources?: ValueSources | ((operator: string) => ValueSources); // List of allowed value sources (must contain "value", "field", or both)
29-
comparator?: string | ((f: Field) => boolean); // Determines which (other) fields to include in the list when valueSource is "field"
29+
comparator?: string | ((f: Field, operator: string) => boolean); // Determines which (other) fields to include in the list when valueSource is "field"
3030
}
3131
```
3232

0 commit comments

Comments
 (0)