Describe the bug
While demoing Flotsam, the following issue arose:
A Evaluator Function was used to validate a collection. Typescript did not show an error, as the function signatures are most likely the same. However, functionality wise, issues with validation success and error messaging arose. Validators can most likely be used to Evaluate values, too.
To Reproduce
- Create a collection & add Validation.
- Add a Evaluator as a Validator Function
Expected behaviour
Typescript should show an error, that a Evaluator can not be used as Validator function and vice versa.
Additional context
This is a typescript only issue.
Describe the bug
While demoing Flotsam, the following issue arose:
A Evaluator Function was used to validate a collection. Typescript did not show an error, as the function signatures are most likely the same. However, functionality wise, issues with validation success and error messaging arose. Validators can most likely be used to Evaluate values, too.
To Reproduce
Expected behaviour
Typescript should show an error, that a Evaluator can not be used as Validator function and vice versa.
Additional context
This is a typescript only issue.