fastest-validator
fastest-validator copied to clipboard
Wrong typescript definition for ValidationSchema
Validation schema contains undefined | any
definition for field which makes all thing pointless: it can not be checked statically and all modern IDE-s can't suggest options possible:
/**
* List of validation rules for each defined field
*/
[key in keyof T]: ValidationRule | undefined | any; // <-- !!! "undefined | any" must be removed to make d.ts really useful on practice