constructor Method
Initializes a new BaseDiagnostic.
BaseDiagnostic<TYPE extends AnyECType, ARGS extends any[]>(ecDefinition: TYPE, messageArgs?: ARGS, category: DiagnosticCategoryDiagnosticCategory.Error): BaseDiagnostic<TYPE, ARGS>
| Parameter | Type | Description | 
|---|---|---|
| ecDefinition | TYPE | The EC object to associate with the diagnostic. | 
| ARGS | The arguments used when formatting the diagnostic message. | |
| category | DiagnosticCategory | The DiagnosticCategory to associate with the diagnostic, Error by default. | 
Returns - BaseDiagnostic<TYPE, ARGS>
Defined in
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.