@cloudflare/workers-types, my client code started having issues compiling, which after some investigation I found was caused by the Element interface used by the HTMLRewriter API conflicting with the browser Element interface. More specifically, Element.append, Element.prepend, Element.before, and Element.after take a string argument for HTMLRewriter, but take Nodes as arguments in the browser.