bwrrp / slimdom.js

Fast, tiny, standards-compliant XML DOM implementation for node and the browser
MIT License
31 stars 8 forks source link

Investigate exporting types compatible with both slimdom and "native" TypeScript DOM types #124

Closed bwrrp closed 2 years ago

bwrrp commented 4 years ago

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.

bwrrp commented 2 years ago

Closing via bwrrp/slimdom-interop-types