ValidationError in fast-xml-validator/lib/fxv.d.cts is definded different than in sources:
In lib:
type ValidationError = {
err: {
code: string;
msg: string,
line: number,
col: number
};
};
In sources (src/ValidationError.js):
export default class ValidationError extends Error {
constructor(message, code, line, col) {
super(message);
this.name = this.constructor.name;
this.code = code;
this.line = line;
this.col = col;
Error.captureStackTrace?.(this, this.constructor);
}
}
I can't properly use the class in typescript
ValidationError in fast-xml-validator/lib/fxv.d.cts is definded different than in sources:
In lib:
In sources (src/ValidationError.js):
I can't properly use the class in typescript