0.0.5 • Published 1 year ago
ts-types-html-parser v0.0.5
ts-types-html-parser
const html = `
<div id="foo" class="one two">
<span id="inner1">
<span class="inner2"></span>
</span>
</div>
`;
type ast = ParseFragment<typeof html>;
ast['attrs']['id'];
// ^ foo
License
BSD-2-Clause