Class UniqueClassValidation<Specifics>

Predefined validation to produce errors, if the same class is declared more than once. This is often relevant for nominally typed classes.

Type Parameters

Implements

Constructors

Properties

foundDeclarations: Map<string, Specifics["LanguageType"][]> = ...
isRelevant: undefined | (languageNode: Specifics["LanguageType"]) => boolean

Methods

  • Calculates a key for a class which encodes its unique properties, i.e. duplicate classes have the same key. This key is used to identify duplicated classes. Override this method to change the properties which make a class unique.

    Parameters

    Returns string

    a string key