WebReflection / linkedom

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

types: parseHTML accepts a string #264

Closed mquandalle closed 3 months ago

mquandalle commented 4 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 3 months ago

</p