Generic type variables
The `ValidationErrors` object generic type variables
ValidationErrors<Id>
ValidationErrors<Id>class ValidationErrors<
Id extends string // <--- Declare generic type variable Id.
> extends CommonErrors<Id> {
constructor(
...id: Id[] // <--- Capture generic type variable Id.
) {
super(...id);
}
}Last updated