★ Constructor
The `TypeError` object constructor
TypeError()
TypeError()constructor(
problem: string,
fix: string,
id?: Id,
type?: Type,
template = TypeError.template
) {
super(problem, fix, id, template, { type });
this.#type = type;
}Parameters
type?:Type
type?:TypeExample usage
Last updated