Improve HTMLRewriterTypes.Element.attributes type (#16319)

This commit is contained in:
Arnaud Barré
2025-01-11 04:50:08 +01:00
committed by GitHub
parent b364c8678d
commit ce68e5eb23

View File

@@ -50,7 +50,7 @@ declare namespace HTMLRewriterTypes {
interface Element {
tagName: string;
readonly attributes: IterableIterator<string[]>;
readonly attributes: IterableIterator<[string, string]>;
readonly removed: boolean;
/** Whether the element is explicitly self-closing, e.g. `<foo />` */
readonly selfClosing: boolean;