Files
douboer@gmail.com 3b7c1d558a first commit
2026-03-03 13:23:14 +08:00

14 lines
391 B
TypeScript

export class XError extends Error {
constructor(message: string) {
message = "[x] " + message;
super(message);
this.name = "XTerminalError";
}
}
export const TARGET_INVALID_ERR =
"mount: A parent HTMLElement (target) is required";
export const TARGET_NOT_CONNECTED_ERR =
"'mount' was called on an HTMLElement (target) that is not attached to DOM.";