… this potentially saves some debuggin hours when implementing a custom validator
:memo: Description
This fixes difficulties when writing a custom validator in typescript by strenghening the typings around the CheckerFunction. The stronger typing allows errors in how validators are implemented to be detected earlier.
:gem: Type of change
[x] New feature (non-breaking change which adds functionality)
:vertical_traffic_light: How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[X] Tested against a custome validator for Yup
:checkered_flag: Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
… this potentially saves some debuggin hours when implementing a custom validator
:memo: Description
This fixes difficulties when writing a custom validator in typescript by strenghening the typings around the CheckerFunction. The stronger typing allows errors in how validators are implemented to be detected earlier.
:gem: Type of change
:vertical_traffic_light: How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Yup
:checkered_flag: Checklist: