Right now, using slimdom as a stand-in for native DOM can result in typing problems, as the types we export are not 1 to 1 compatible with TypeScript's dom.d.ts. We should investigate whether it's possible to export a set of interfaces that fits both slimdom as well as the dom.d.ts types. These should cover only the subset implemented by both, in terms of types that hide implementation differences such as Node[] vs NodeList.
Right now, using slimdom as a stand-in for native DOM can result in typing problems, as the types we export are not 1 to 1 compatible with TypeScript's
dom.d.ts
. We should investigate whether it's possible to export a set of interfaces that fits both slimdom as well as thedom.d.ts
types. These should cover only the subset implemented by both, in terms of types that hide implementation differences such asNode[]
vsNodeList
.