mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
24 lines
501 B
TypeScript
24 lines
501 B
TypeScript
// @checkJs: true
|
|
// @strict: true
|
|
// @emitDeclarationOnly: true
|
|
// @declaration: true
|
|
// @Filename: thisPropertyAssignmentInherited.js
|
|
export class Element {
|
|
/**
|
|
* @returns {String}
|
|
*/
|
|
get textContent() {
|
|
return ''
|
|
}
|
|
set textContent(x) {}
|
|
cloneNode() { return this}
|
|
}
|
|
export class HTMLElement extends Element {}
|
|
export class TextElement extends HTMLElement {
|
|
get innerHTML() { return this.textContent; }
|
|
set innerHTML(html) { this.textContent = html; }
|
|
toString() {
|
|
}
|
|
}
|
|
|