diff --git a/types/generated-snapshot/2021-11-03/index.d.ts b/types/generated-snapshot/2021-11-03/index.d.ts index 19a8f0c3a31..e0abc000d03 100755 --- a/types/generated-snapshot/2021-11-03/index.d.ts +++ b/types/generated-snapshot/2021-11-03/index.d.ts @@ -1416,20 +1416,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1444,9 +1468,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2021-11-03/index.ts b/types/generated-snapshot/2021-11-03/index.ts index f9742194c25..e9582ba1a31 100755 --- a/types/generated-snapshot/2021-11-03/index.ts +++ b/types/generated-snapshot/2021-11-03/index.ts @@ -1421,20 +1421,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1449,9 +1473,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/2022-01-31/index.d.ts b/types/generated-snapshot/2022-01-31/index.d.ts index c4575ca8501..a103aff8282 100755 --- a/types/generated-snapshot/2022-01-31/index.d.ts +++ b/types/generated-snapshot/2022-01-31/index.d.ts @@ -1422,20 +1422,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1450,9 +1474,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2022-01-31/index.ts b/types/generated-snapshot/2022-01-31/index.ts index 03709d2b9f7..3c731c385a6 100755 --- a/types/generated-snapshot/2022-01-31/index.ts +++ b/types/generated-snapshot/2022-01-31/index.ts @@ -1427,20 +1427,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1455,9 +1479,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/2022-03-21/index.d.ts b/types/generated-snapshot/2022-03-21/index.d.ts index e929c0f17ed..eabe2addc14 100755 --- a/types/generated-snapshot/2022-03-21/index.d.ts +++ b/types/generated-snapshot/2022-03-21/index.d.ts @@ -1440,20 +1440,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1468,9 +1492,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2022-03-21/index.ts b/types/generated-snapshot/2022-03-21/index.ts index 0c8eeef7df9..644d47b6c0a 100755 --- a/types/generated-snapshot/2022-03-21/index.ts +++ b/types/generated-snapshot/2022-03-21/index.ts @@ -1445,20 +1445,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1473,9 +1497,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/2022-08-04/index.d.ts b/types/generated-snapshot/2022-08-04/index.d.ts index fa9046bdb48..8706e551807 100755 --- a/types/generated-snapshot/2022-08-04/index.d.ts +++ b/types/generated-snapshot/2022-08-04/index.d.ts @@ -1440,20 +1440,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1468,9 +1492,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2022-08-04/index.ts b/types/generated-snapshot/2022-08-04/index.ts index d60f657a56a..63c668152d0 100755 --- a/types/generated-snapshot/2022-08-04/index.ts +++ b/types/generated-snapshot/2022-08-04/index.ts @@ -1445,20 +1445,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1473,9 +1497,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/2022-10-31/index.d.ts b/types/generated-snapshot/2022-10-31/index.d.ts index 7058bb1794d..64317239bdf 100755 --- a/types/generated-snapshot/2022-10-31/index.d.ts +++ b/types/generated-snapshot/2022-10-31/index.d.ts @@ -1440,20 +1440,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1468,9 +1492,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2022-10-31/index.ts b/types/generated-snapshot/2022-10-31/index.ts index 13f5db8ba95..35de138200f 100755 --- a/types/generated-snapshot/2022-10-31/index.ts +++ b/types/generated-snapshot/2022-10-31/index.ts @@ -1445,20 +1445,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1473,9 +1497,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/2022-11-30/index.d.ts b/types/generated-snapshot/2022-11-30/index.d.ts index 0c9a38292a8..d289f9a40ce 100755 --- a/types/generated-snapshot/2022-11-30/index.d.ts +++ b/types/generated-snapshot/2022-11-30/index.d.ts @@ -1445,20 +1445,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1473,9 +1497,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2022-11-30/index.ts b/types/generated-snapshot/2022-11-30/index.ts index c2c7f426d8e..fab2ff3ab52 100755 --- a/types/generated-snapshot/2022-11-30/index.ts +++ b/types/generated-snapshot/2022-11-30/index.ts @@ -1450,20 +1450,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1478,9 +1502,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/2023-03-01/index.d.ts b/types/generated-snapshot/2023-03-01/index.d.ts index 9fa9a8441bd..770ce88aa7f 100755 --- a/types/generated-snapshot/2023-03-01/index.d.ts +++ b/types/generated-snapshot/2023-03-01/index.d.ts @@ -1445,20 +1445,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1473,9 +1497,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2023-03-01/index.ts b/types/generated-snapshot/2023-03-01/index.ts index d070e0470d8..e18feea7837 100755 --- a/types/generated-snapshot/2023-03-01/index.ts +++ b/types/generated-snapshot/2023-03-01/index.ts @@ -1450,20 +1450,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1478,9 +1502,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/2023-07-01/index.d.ts b/types/generated-snapshot/2023-07-01/index.d.ts index c345274476a..79d21e63bc9 100755 --- a/types/generated-snapshot/2023-07-01/index.d.ts +++ b/types/generated-snapshot/2023-07-01/index.d.ts @@ -1445,20 +1445,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1473,9 +1497,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/2023-07-01/index.ts b/types/generated-snapshot/2023-07-01/index.ts index dabd5224051..141aaa0cd55 100755 --- a/types/generated-snapshot/2023-07-01/index.ts +++ b/types/generated-snapshot/2023-07-01/index.ts @@ -1450,20 +1450,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1478,9 +1502,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/experimental/index.d.ts b/types/generated-snapshot/experimental/index.d.ts index c9c75b66774..9b7af065b7f 100755 --- a/types/generated-snapshot/experimental/index.d.ts +++ b/types/generated-snapshot/experimental/index.d.ts @@ -1453,20 +1453,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1481,9 +1505,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/experimental/index.ts b/types/generated-snapshot/experimental/index.ts index a5e148ed626..67bfcd18917 100755 --- a/types/generated-snapshot/experimental/index.ts +++ b/types/generated-snapshot/experimental/index.ts @@ -1458,20 +1458,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1486,9 +1510,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd { diff --git a/types/generated-snapshot/oldest/index.d.ts b/types/generated-snapshot/oldest/index.d.ts index 75c0bfbc79b..d1d799e6106 100755 --- a/types/generated-snapshot/oldest/index.d.ts +++ b/types/generated-snapshot/oldest/index.d.ts @@ -1416,20 +1416,44 @@ interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } interface Comment { @@ -1444,9 +1468,18 @@ interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } interface DocumentEnd { diff --git a/types/generated-snapshot/oldest/index.ts b/types/generated-snapshot/oldest/index.ts index f8a068217e1..ad6de110a82 100755 --- a/types/generated-snapshot/oldest/index.ts +++ b/types/generated-snapshot/oldest/index.ts @@ -1421,20 +1421,44 @@ export interface Element { hasAttribute(name: string): boolean; setAttribute(name: string, value: string): Element; removeAttribute(name: string): Element; - before(content: string, options?: ContentOptions): Element; - after(content: string, options?: ContentOptions): Element; - prepend(content: string, options?: ContentOptions): Element; - append(content: string, options?: ContentOptions): Element; - replace(content: string, options?: ContentOptions): Element; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + prepend( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + append( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; remove(): Element; removeAndKeepContent(): Element; - setInnerContent(content: string, options?: ContentOptions): Element; + setInnerContent( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Element; onEndTag(handler: (tag: EndTag) => void | Promise): void; } export interface EndTag { name: string; - before(content: string, options?: ContentOptions): EndTag; - after(content: string, options?: ContentOptions): EndTag; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): EndTag; remove(): EndTag; } export interface Comment { @@ -1449,9 +1473,18 @@ export interface Text { readonly text: string; readonly lastInTextNode: boolean; readonly removed: boolean; - before(content: string, options?: ContentOptions): Text; - after(content: string, options?: ContentOptions): Text; - replace(content: string, options?: ContentOptions): Text; + before( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + after( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; + replace( + content: string | ReadableStream | Response, + options?: ContentOptions, + ): Text; remove(): Text; } export interface DocumentEnd {