static define()
Defines the `Error` instance.
Error.define()
public static define<Id extends string>(
problem: string,
fix: string,
id?: Id,
template = Error.template
): Error<Id> {
return new this(problem, fix, id, template);
}Generic type variables
Idextendsstring
Parameters
problem:string
fix:string
id?:Id
template =Error.template
Return type
Error<Id>
Returns
Example usage
Last updated