/* DOM 宽松化垫片。 * * 原实现是原生 JS:`document.getElementById("x").value` / `.dataset` / 自定义标记 * 属性(如 `el.__kind`)都直接拿来用,不做类型收窄。搬成 TS 后若逐个加 cast, * 会改动上百处正文、且和「逐函数等价」的目标冲突;这里改用**接口合并**给 DOM * 接口补一个宽松索引签名:已声明成员(addEventListener 等)保持原有类型, * 未声明成员一律 any。纯类型层面,零运行时开销、零行为变化。 */ interface Element { [key: string]: any; } interface HTMLElement { [key: string]: any; } interface HTMLInputElement { [key: string]: any; } interface HTMLTextAreaElement { [key: string]: any; } interface HTMLCanvasElement { [key: string]: any; } interface SVGSVGElement { [key: string]: any; }