Skip to main content
Deno 2 is finally here 🎉️
Learn more

DOMType

Deno compatible lib.dom.d.ts

How to use

import 'https://deno.land/x/domtype@1.0.3/mod.ts';

// Example

for (const p of document.querySelectorAll('p')) {
  console.log(p.innerText);
}

const div = document.createElement('div');
console.log(div.nodeType);