type : String | Array<String>

type

String | Array<String>

Validation succeeds if the type of the instance matches the type represented by the given type, or matches at least one of the given types.

The supported types are:

  • "null"
  • "boolean"
  • "object"
  • "array"
  • "number"
  • "integer"
  • "string"