Home Reference Source Test Repository

Typedef

Static Public Summary
public

Static Public

public ValidationEntry: object source

Properties:

NameTypeAttributeDescription
type string
  • optional

Optionally tests with a typeof check.

expected Array<*> | function | Set<*>
  • optional

Optional array, function, or set of expected values to test against.

message string
  • optional

Optional message to include.

required boolean
  • optional
  • default: true

When false if the accessor is missing validation is skipped.

error boolean
  • optional
  • default: true

When true and error is thrown otherwise a boolean is returned.