chore: format code

This commit is contained in:
Ayo Ayco 2024-12-19 22:18:52 +01:00
parent 3ab877e869
commit 8c46683527

View file

@ -63,17 +63,17 @@ export class WebComponent extends HTMLElement {
/** /**
* Triggered after view is initialized * Triggered after view is initialized
*/ */
afterViewInit() { } afterViewInit() {}
/** /**
* Triggered when the component is connected to the DOM * Triggered when the component is connected to the DOM
*/ */
onInit() { } onInit() {}
/** /**
* Triggered when the component is disconnected from the DOM * Triggered when the component is disconnected from the DOM
*/ */
onDestroy() { } onDestroy() {}
/** /**
* Triggered when an attribute value changes * Triggered when an attribute value changes
@ -84,7 +84,7 @@ export class WebComponent extends HTMLElement {
* }} Changes * }} Changes
* @param {Changes} changes * @param {Changes} changes
*/ */
onChanges(changes) { } onChanges(changes) {}
constructor() { constructor() {
super(); super();
@ -148,7 +148,8 @@ export class WebComponent extends HTMLElement {
effectsMap[prop].push(value.callback); effectsMap[prop].push(value.callback);
} else if (typeMap[prop] !== typeof value) { } else if (typeMap[prop] !== typeof value) {
throw TypeError( throw TypeError(
`Cannot assign ${typeof value} to ${typeMap[prop] `Cannot assign ${typeof value} to ${
typeMap[prop]
} property (setting '${prop}' of ${meta.constructor.name})` } property (setting '${prop}' of ${meta.constructor.name})`
); );
} else if (oldValue !== value) { } else if (oldValue !== value) {