mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
17 lines
255 B
TypeScript
17 lines
255 B
TypeScript
|
export default class Test {
|
||
|
#element: HTMLElement;
|
||
|
|
||
|
constructor(element: HTMLElement) {
|
||
|
this.#element = element;
|
||
|
}
|
||
|
|
||
|
#run() {
|
||
|
setTimeout(() => {
|
||
|
this.#element.textContent = 'TESTED';
|
||
|
}, 1000);
|
||
|
}
|
||
|
|
||
|
run() {
|
||
|
this.#run();
|
||
|
}
|
||
|
}
|