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