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