Interface for capsuling validating for class's own properties

interface Validate {
    validate(): void;
}

Implemented by

Methods

Methods

  • Validates all properties of the class and throws if data is invalid

    Returns void