WebReflection / linkedom

A triple-linked lists based DOM implementation.
https://webreflection.medium.com/linkedom-a-jsdom-alternative-53dd8f699311
ISC License
1.71k stars 82 forks source link

types: parseHTML accepts a string #264

Closed mquandalle closed 7 months ago

mquandalle commented 8 months ago

Hello,

I was trying to fix the following typescript issue:

image

(map doesn't exist on the dom, but is valid with linkedom)

As a baby first step, I changed the input type of parseHTML from any to string.

Are you open to further refinement to remove the typing error when using .map() in the above example?

WebReflection commented 7 months ago

</p