Skip to content

Wrong typescript definition for ValidationSchema #334

@koldoon

Description

@koldoon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions