The `CommonError` object generic type variables
Last updated 1 year ago
Was this helpful?
CommonError<
Id
>
extends
A generic type variable constrained by the , by default of the value captured from the provided indicates the identification type of a new instance.
abstract class CommonError< Id extends string // <--- Declare generic type variable Id. > extends Error { ... constructor( problem: string, fix: string, id?: Id, // <--- Capture generic type variable Id. template = CommonError.template, additional?: { link?: string; max?: number; min?: number; type?: string } ) { ... } ... }
string
CommonError
id