Class RecordValidator<T>

Record validator. Validation is performed against a record with a string key type and throws an exception if the key is not found.

Type Parameters

  • T

Implements

Constructors

Accessors

Methods

Constructors

Accessors

  • get typeName(): string
  • Get the type name.

    Returns string

Methods

  • Validate a key by looking it up in the record.

    Parameters

    • key: string

      Record key.

    Returns void