@cloudflare/workers-types 4.20241230.0 → 4.20250109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2021-11-03/index.d.ts +45 -11
- package/2021-11-03/index.ts +44 -11
- package/2022-01-31/index.d.ts +45 -11
- package/2022-01-31/index.ts +44 -11
- package/2022-03-21/index.d.ts +45 -11
- package/2022-03-21/index.ts +44 -11
- package/2022-08-04/index.d.ts +45 -11
- package/2022-08-04/index.ts +44 -11
- package/2022-10-31/index.d.ts +45 -11
- package/2022-10-31/index.ts +44 -11
- package/2022-11-30/index.d.ts +45 -11
- package/2022-11-30/index.ts +44 -11
- package/2023-03-01/index.d.ts +45 -11
- package/2023-03-01/index.ts +44 -11
- package/2023-07-01/index.d.ts +45 -11
- package/2023-07-01/index.ts +44 -11
- package/experimental/index.d.ts +47 -13
- package/experimental/index.ts +46 -13
- package/index.d.ts +45 -11
- package/index.ts +44 -11
- package/oldest/index.d.ts +45 -11
- package/oldest/index.ts +44 -11
- package/package.json +1 -1
package/experimental/index.d.ts
CHANGED
|
@@ -1453,20 +1453,44 @@ interface Element {
|
|
|
1453
1453
|
hasAttribute(name: string): boolean;
|
|
1454
1454
|
setAttribute(name: string, value: string): Element;
|
|
1455
1455
|
removeAttribute(name: string): Element;
|
|
1456
|
-
before(
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1456
|
+
before(
|
|
1457
|
+
content: string | ReadableStream | Response,
|
|
1458
|
+
options?: ContentOptions,
|
|
1459
|
+
): Element;
|
|
1460
|
+
after(
|
|
1461
|
+
content: string | ReadableStream | Response,
|
|
1462
|
+
options?: ContentOptions,
|
|
1463
|
+
): Element;
|
|
1464
|
+
prepend(
|
|
1465
|
+
content: string | ReadableStream | Response,
|
|
1466
|
+
options?: ContentOptions,
|
|
1467
|
+
): Element;
|
|
1468
|
+
append(
|
|
1469
|
+
content: string | ReadableStream | Response,
|
|
1470
|
+
options?: ContentOptions,
|
|
1471
|
+
): Element;
|
|
1472
|
+
replace(
|
|
1473
|
+
content: string | ReadableStream | Response,
|
|
1474
|
+
options?: ContentOptions,
|
|
1475
|
+
): Element;
|
|
1461
1476
|
remove(): Element;
|
|
1462
1477
|
removeAndKeepContent(): Element;
|
|
1463
|
-
setInnerContent(
|
|
1478
|
+
setInnerContent(
|
|
1479
|
+
content: string | ReadableStream | Response,
|
|
1480
|
+
options?: ContentOptions,
|
|
1481
|
+
): Element;
|
|
1464
1482
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1465
1483
|
}
|
|
1466
1484
|
interface EndTag {
|
|
1467
1485
|
name: string;
|
|
1468
|
-
before(
|
|
1469
|
-
|
|
1486
|
+
before(
|
|
1487
|
+
content: string | ReadableStream | Response,
|
|
1488
|
+
options?: ContentOptions,
|
|
1489
|
+
): EndTag;
|
|
1490
|
+
after(
|
|
1491
|
+
content: string | ReadableStream | Response,
|
|
1492
|
+
options?: ContentOptions,
|
|
1493
|
+
): EndTag;
|
|
1470
1494
|
remove(): EndTag;
|
|
1471
1495
|
}
|
|
1472
1496
|
interface Comment {
|
|
@@ -1481,9 +1505,18 @@ interface Text {
|
|
|
1481
1505
|
readonly text: string;
|
|
1482
1506
|
readonly lastInTextNode: boolean;
|
|
1483
1507
|
readonly removed: boolean;
|
|
1484
|
-
before(
|
|
1485
|
-
|
|
1486
|
-
|
|
1508
|
+
before(
|
|
1509
|
+
content: string | ReadableStream | Response,
|
|
1510
|
+
options?: ContentOptions,
|
|
1511
|
+
): Text;
|
|
1512
|
+
after(
|
|
1513
|
+
content: string | ReadableStream | Response,
|
|
1514
|
+
options?: ContentOptions,
|
|
1515
|
+
): Text;
|
|
1516
|
+
replace(
|
|
1517
|
+
content: string | ReadableStream | Response,
|
|
1518
|
+
options?: ContentOptions,
|
|
1519
|
+
): Text;
|
|
1487
1520
|
remove(): Text;
|
|
1488
1521
|
}
|
|
1489
1522
|
interface DocumentEnd {
|
|
@@ -1677,7 +1710,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>>
|
|
|
1677
1710
|
*
|
|
1678
1711
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
|
|
1679
1712
|
*/
|
|
1680
|
-
cache?: "no-store";
|
|
1713
|
+
cache?: "no-store" | "no-cache";
|
|
1681
1714
|
}
|
|
1682
1715
|
interface RequestInit<Cf = CfProperties> {
|
|
1683
1716
|
/* A string to set request's method. */
|
|
@@ -1691,7 +1724,7 @@ interface RequestInit<Cf = CfProperties> {
|
|
|
1691
1724
|
fetcher?: Fetcher | null;
|
|
1692
1725
|
cf?: Cf;
|
|
1693
1726
|
/* A string indicating how the request will interact with the browser's cache to set request's cache. */
|
|
1694
|
-
cache?: "no-store";
|
|
1727
|
+
cache?: "no-store" | "no-cache";
|
|
1695
1728
|
/* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
|
|
1696
1729
|
integrity?: string;
|
|
1697
1730
|
/* An AbortSignal to set request's signal. */
|
|
@@ -5519,6 +5552,7 @@ declare module "cloudflare:workers" {
|
|
|
5519
5552
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
5520
5553
|
protected ctx: ExecutionContext;
|
|
5521
5554
|
protected env: Env;
|
|
5555
|
+
constructor(ctx: ExecutionContext, env: Env);
|
|
5522
5556
|
run(
|
|
5523
5557
|
event: Readonly<WorkflowEvent<T>>,
|
|
5524
5558
|
step: WorkflowStep,
|
package/experimental/index.ts
CHANGED
|
@@ -1458,20 +1458,44 @@ export interface Element {
|
|
|
1458
1458
|
hasAttribute(name: string): boolean;
|
|
1459
1459
|
setAttribute(name: string, value: string): Element;
|
|
1460
1460
|
removeAttribute(name: string): Element;
|
|
1461
|
-
before(
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1461
|
+
before(
|
|
1462
|
+
content: string | ReadableStream | Response,
|
|
1463
|
+
options?: ContentOptions,
|
|
1464
|
+
): Element;
|
|
1465
|
+
after(
|
|
1466
|
+
content: string | ReadableStream | Response,
|
|
1467
|
+
options?: ContentOptions,
|
|
1468
|
+
): Element;
|
|
1469
|
+
prepend(
|
|
1470
|
+
content: string | ReadableStream | Response,
|
|
1471
|
+
options?: ContentOptions,
|
|
1472
|
+
): Element;
|
|
1473
|
+
append(
|
|
1474
|
+
content: string | ReadableStream | Response,
|
|
1475
|
+
options?: ContentOptions,
|
|
1476
|
+
): Element;
|
|
1477
|
+
replace(
|
|
1478
|
+
content: string | ReadableStream | Response,
|
|
1479
|
+
options?: ContentOptions,
|
|
1480
|
+
): Element;
|
|
1466
1481
|
remove(): Element;
|
|
1467
1482
|
removeAndKeepContent(): Element;
|
|
1468
|
-
setInnerContent(
|
|
1483
|
+
setInnerContent(
|
|
1484
|
+
content: string | ReadableStream | Response,
|
|
1485
|
+
options?: ContentOptions,
|
|
1486
|
+
): Element;
|
|
1469
1487
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1470
1488
|
}
|
|
1471
1489
|
export interface EndTag {
|
|
1472
1490
|
name: string;
|
|
1473
|
-
before(
|
|
1474
|
-
|
|
1491
|
+
before(
|
|
1492
|
+
content: string | ReadableStream | Response,
|
|
1493
|
+
options?: ContentOptions,
|
|
1494
|
+
): EndTag;
|
|
1495
|
+
after(
|
|
1496
|
+
content: string | ReadableStream | Response,
|
|
1497
|
+
options?: ContentOptions,
|
|
1498
|
+
): EndTag;
|
|
1475
1499
|
remove(): EndTag;
|
|
1476
1500
|
}
|
|
1477
1501
|
export interface Comment {
|
|
@@ -1486,9 +1510,18 @@ export interface Text {
|
|
|
1486
1510
|
readonly text: string;
|
|
1487
1511
|
readonly lastInTextNode: boolean;
|
|
1488
1512
|
readonly removed: boolean;
|
|
1489
|
-
before(
|
|
1490
|
-
|
|
1491
|
-
|
|
1513
|
+
before(
|
|
1514
|
+
content: string | ReadableStream | Response,
|
|
1515
|
+
options?: ContentOptions,
|
|
1516
|
+
): Text;
|
|
1517
|
+
after(
|
|
1518
|
+
content: string | ReadableStream | Response,
|
|
1519
|
+
options?: ContentOptions,
|
|
1520
|
+
): Text;
|
|
1521
|
+
replace(
|
|
1522
|
+
content: string | ReadableStream | Response,
|
|
1523
|
+
options?: ContentOptions,
|
|
1524
|
+
): Text;
|
|
1492
1525
|
remove(): Text;
|
|
1493
1526
|
}
|
|
1494
1527
|
export interface DocumentEnd {
|
|
@@ -1685,7 +1718,7 @@ export interface Request<
|
|
|
1685
1718
|
*
|
|
1686
1719
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
|
|
1687
1720
|
*/
|
|
1688
|
-
cache?: "no-store";
|
|
1721
|
+
cache?: "no-store" | "no-cache";
|
|
1689
1722
|
}
|
|
1690
1723
|
export interface RequestInit<Cf = CfProperties> {
|
|
1691
1724
|
/* A string to set request's method. */
|
|
@@ -1699,7 +1732,7 @@ export interface RequestInit<Cf = CfProperties> {
|
|
|
1699
1732
|
fetcher?: Fetcher | null;
|
|
1700
1733
|
cf?: Cf;
|
|
1701
1734
|
/* A string indicating how the request will interact with the browser's cache to set request's cache. */
|
|
1702
|
-
cache?: "no-store";
|
|
1735
|
+
cache?: "no-store" | "no-cache";
|
|
1703
1736
|
/* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
|
|
1704
1737
|
integrity?: string;
|
|
1705
1738
|
/* An AbortSignal to set request's signal. */
|
package/index.d.ts
CHANGED
|
@@ -1416,20 +1416,44 @@ interface Element {
|
|
|
1416
1416
|
hasAttribute(name: string): boolean;
|
|
1417
1417
|
setAttribute(name: string, value: string): Element;
|
|
1418
1418
|
removeAttribute(name: string): Element;
|
|
1419
|
-
before(
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1419
|
+
before(
|
|
1420
|
+
content: string | ReadableStream | Response,
|
|
1421
|
+
options?: ContentOptions,
|
|
1422
|
+
): Element;
|
|
1423
|
+
after(
|
|
1424
|
+
content: string | ReadableStream | Response,
|
|
1425
|
+
options?: ContentOptions,
|
|
1426
|
+
): Element;
|
|
1427
|
+
prepend(
|
|
1428
|
+
content: string | ReadableStream | Response,
|
|
1429
|
+
options?: ContentOptions,
|
|
1430
|
+
): Element;
|
|
1431
|
+
append(
|
|
1432
|
+
content: string | ReadableStream | Response,
|
|
1433
|
+
options?: ContentOptions,
|
|
1434
|
+
): Element;
|
|
1435
|
+
replace(
|
|
1436
|
+
content: string | ReadableStream | Response,
|
|
1437
|
+
options?: ContentOptions,
|
|
1438
|
+
): Element;
|
|
1424
1439
|
remove(): Element;
|
|
1425
1440
|
removeAndKeepContent(): Element;
|
|
1426
|
-
setInnerContent(
|
|
1441
|
+
setInnerContent(
|
|
1442
|
+
content: string | ReadableStream | Response,
|
|
1443
|
+
options?: ContentOptions,
|
|
1444
|
+
): Element;
|
|
1427
1445
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1428
1446
|
}
|
|
1429
1447
|
interface EndTag {
|
|
1430
1448
|
name: string;
|
|
1431
|
-
before(
|
|
1432
|
-
|
|
1449
|
+
before(
|
|
1450
|
+
content: string | ReadableStream | Response,
|
|
1451
|
+
options?: ContentOptions,
|
|
1452
|
+
): EndTag;
|
|
1453
|
+
after(
|
|
1454
|
+
content: string | ReadableStream | Response,
|
|
1455
|
+
options?: ContentOptions,
|
|
1456
|
+
): EndTag;
|
|
1433
1457
|
remove(): EndTag;
|
|
1434
1458
|
}
|
|
1435
1459
|
interface Comment {
|
|
@@ -1444,9 +1468,18 @@ interface Text {
|
|
|
1444
1468
|
readonly text: string;
|
|
1445
1469
|
readonly lastInTextNode: boolean;
|
|
1446
1470
|
readonly removed: boolean;
|
|
1447
|
-
before(
|
|
1448
|
-
|
|
1449
|
-
|
|
1471
|
+
before(
|
|
1472
|
+
content: string | ReadableStream | Response,
|
|
1473
|
+
options?: ContentOptions,
|
|
1474
|
+
): Text;
|
|
1475
|
+
after(
|
|
1476
|
+
content: string | ReadableStream | Response,
|
|
1477
|
+
options?: ContentOptions,
|
|
1478
|
+
): Text;
|
|
1479
|
+
replace(
|
|
1480
|
+
content: string | ReadableStream | Response,
|
|
1481
|
+
options?: ContentOptions,
|
|
1482
|
+
): Text;
|
|
1450
1483
|
remove(): Text;
|
|
1451
1484
|
}
|
|
1452
1485
|
interface DocumentEnd {
|
|
@@ -5378,6 +5411,7 @@ declare module "cloudflare:workers" {
|
|
|
5378
5411
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
5379
5412
|
protected ctx: ExecutionContext;
|
|
5380
5413
|
protected env: Env;
|
|
5414
|
+
constructor(ctx: ExecutionContext, env: Env);
|
|
5381
5415
|
run(
|
|
5382
5416
|
event: Readonly<WorkflowEvent<T>>,
|
|
5383
5417
|
step: WorkflowStep,
|
package/index.ts
CHANGED
|
@@ -1421,20 +1421,44 @@ export interface Element {
|
|
|
1421
1421
|
hasAttribute(name: string): boolean;
|
|
1422
1422
|
setAttribute(name: string, value: string): Element;
|
|
1423
1423
|
removeAttribute(name: string): Element;
|
|
1424
|
-
before(
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1424
|
+
before(
|
|
1425
|
+
content: string | ReadableStream | Response,
|
|
1426
|
+
options?: ContentOptions,
|
|
1427
|
+
): Element;
|
|
1428
|
+
after(
|
|
1429
|
+
content: string | ReadableStream | Response,
|
|
1430
|
+
options?: ContentOptions,
|
|
1431
|
+
): Element;
|
|
1432
|
+
prepend(
|
|
1433
|
+
content: string | ReadableStream | Response,
|
|
1434
|
+
options?: ContentOptions,
|
|
1435
|
+
): Element;
|
|
1436
|
+
append(
|
|
1437
|
+
content: string | ReadableStream | Response,
|
|
1438
|
+
options?: ContentOptions,
|
|
1439
|
+
): Element;
|
|
1440
|
+
replace(
|
|
1441
|
+
content: string | ReadableStream | Response,
|
|
1442
|
+
options?: ContentOptions,
|
|
1443
|
+
): Element;
|
|
1429
1444
|
remove(): Element;
|
|
1430
1445
|
removeAndKeepContent(): Element;
|
|
1431
|
-
setInnerContent(
|
|
1446
|
+
setInnerContent(
|
|
1447
|
+
content: string | ReadableStream | Response,
|
|
1448
|
+
options?: ContentOptions,
|
|
1449
|
+
): Element;
|
|
1432
1450
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1433
1451
|
}
|
|
1434
1452
|
export interface EndTag {
|
|
1435
1453
|
name: string;
|
|
1436
|
-
before(
|
|
1437
|
-
|
|
1454
|
+
before(
|
|
1455
|
+
content: string | ReadableStream | Response,
|
|
1456
|
+
options?: ContentOptions,
|
|
1457
|
+
): EndTag;
|
|
1458
|
+
after(
|
|
1459
|
+
content: string | ReadableStream | Response,
|
|
1460
|
+
options?: ContentOptions,
|
|
1461
|
+
): EndTag;
|
|
1438
1462
|
remove(): EndTag;
|
|
1439
1463
|
}
|
|
1440
1464
|
export interface Comment {
|
|
@@ -1449,9 +1473,18 @@ export interface Text {
|
|
|
1449
1473
|
readonly text: string;
|
|
1450
1474
|
readonly lastInTextNode: boolean;
|
|
1451
1475
|
readonly removed: boolean;
|
|
1452
|
-
before(
|
|
1453
|
-
|
|
1454
|
-
|
|
1476
|
+
before(
|
|
1477
|
+
content: string | ReadableStream | Response,
|
|
1478
|
+
options?: ContentOptions,
|
|
1479
|
+
): Text;
|
|
1480
|
+
after(
|
|
1481
|
+
content: string | ReadableStream | Response,
|
|
1482
|
+
options?: ContentOptions,
|
|
1483
|
+
): Text;
|
|
1484
|
+
replace(
|
|
1485
|
+
content: string | ReadableStream | Response,
|
|
1486
|
+
options?: ContentOptions,
|
|
1487
|
+
): Text;
|
|
1455
1488
|
remove(): Text;
|
|
1456
1489
|
}
|
|
1457
1490
|
export interface DocumentEnd {
|
package/oldest/index.d.ts
CHANGED
|
@@ -1416,20 +1416,44 @@ interface Element {
|
|
|
1416
1416
|
hasAttribute(name: string): boolean;
|
|
1417
1417
|
setAttribute(name: string, value: string): Element;
|
|
1418
1418
|
removeAttribute(name: string): Element;
|
|
1419
|
-
before(
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1419
|
+
before(
|
|
1420
|
+
content: string | ReadableStream | Response,
|
|
1421
|
+
options?: ContentOptions,
|
|
1422
|
+
): Element;
|
|
1423
|
+
after(
|
|
1424
|
+
content: string | ReadableStream | Response,
|
|
1425
|
+
options?: ContentOptions,
|
|
1426
|
+
): Element;
|
|
1427
|
+
prepend(
|
|
1428
|
+
content: string | ReadableStream | Response,
|
|
1429
|
+
options?: ContentOptions,
|
|
1430
|
+
): Element;
|
|
1431
|
+
append(
|
|
1432
|
+
content: string | ReadableStream | Response,
|
|
1433
|
+
options?: ContentOptions,
|
|
1434
|
+
): Element;
|
|
1435
|
+
replace(
|
|
1436
|
+
content: string | ReadableStream | Response,
|
|
1437
|
+
options?: ContentOptions,
|
|
1438
|
+
): Element;
|
|
1424
1439
|
remove(): Element;
|
|
1425
1440
|
removeAndKeepContent(): Element;
|
|
1426
|
-
setInnerContent(
|
|
1441
|
+
setInnerContent(
|
|
1442
|
+
content: string | ReadableStream | Response,
|
|
1443
|
+
options?: ContentOptions,
|
|
1444
|
+
): Element;
|
|
1427
1445
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1428
1446
|
}
|
|
1429
1447
|
interface EndTag {
|
|
1430
1448
|
name: string;
|
|
1431
|
-
before(
|
|
1432
|
-
|
|
1449
|
+
before(
|
|
1450
|
+
content: string | ReadableStream | Response,
|
|
1451
|
+
options?: ContentOptions,
|
|
1452
|
+
): EndTag;
|
|
1453
|
+
after(
|
|
1454
|
+
content: string | ReadableStream | Response,
|
|
1455
|
+
options?: ContentOptions,
|
|
1456
|
+
): EndTag;
|
|
1433
1457
|
remove(): EndTag;
|
|
1434
1458
|
}
|
|
1435
1459
|
interface Comment {
|
|
@@ -1444,9 +1468,18 @@ interface Text {
|
|
|
1444
1468
|
readonly text: string;
|
|
1445
1469
|
readonly lastInTextNode: boolean;
|
|
1446
1470
|
readonly removed: boolean;
|
|
1447
|
-
before(
|
|
1448
|
-
|
|
1449
|
-
|
|
1471
|
+
before(
|
|
1472
|
+
content: string | ReadableStream | Response,
|
|
1473
|
+
options?: ContentOptions,
|
|
1474
|
+
): Text;
|
|
1475
|
+
after(
|
|
1476
|
+
content: string | ReadableStream | Response,
|
|
1477
|
+
options?: ContentOptions,
|
|
1478
|
+
): Text;
|
|
1479
|
+
replace(
|
|
1480
|
+
content: string | ReadableStream | Response,
|
|
1481
|
+
options?: ContentOptions,
|
|
1482
|
+
): Text;
|
|
1450
1483
|
remove(): Text;
|
|
1451
1484
|
}
|
|
1452
1485
|
interface DocumentEnd {
|
|
@@ -5378,6 +5411,7 @@ declare module "cloudflare:workers" {
|
|
|
5378
5411
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
5379
5412
|
protected ctx: ExecutionContext;
|
|
5380
5413
|
protected env: Env;
|
|
5414
|
+
constructor(ctx: ExecutionContext, env: Env);
|
|
5381
5415
|
run(
|
|
5382
5416
|
event: Readonly<WorkflowEvent<T>>,
|
|
5383
5417
|
step: WorkflowStep,
|
package/oldest/index.ts
CHANGED
|
@@ -1421,20 +1421,44 @@ export interface Element {
|
|
|
1421
1421
|
hasAttribute(name: string): boolean;
|
|
1422
1422
|
setAttribute(name: string, value: string): Element;
|
|
1423
1423
|
removeAttribute(name: string): Element;
|
|
1424
|
-
before(
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1424
|
+
before(
|
|
1425
|
+
content: string | ReadableStream | Response,
|
|
1426
|
+
options?: ContentOptions,
|
|
1427
|
+
): Element;
|
|
1428
|
+
after(
|
|
1429
|
+
content: string | ReadableStream | Response,
|
|
1430
|
+
options?: ContentOptions,
|
|
1431
|
+
): Element;
|
|
1432
|
+
prepend(
|
|
1433
|
+
content: string | ReadableStream | Response,
|
|
1434
|
+
options?: ContentOptions,
|
|
1435
|
+
): Element;
|
|
1436
|
+
append(
|
|
1437
|
+
content: string | ReadableStream | Response,
|
|
1438
|
+
options?: ContentOptions,
|
|
1439
|
+
): Element;
|
|
1440
|
+
replace(
|
|
1441
|
+
content: string | ReadableStream | Response,
|
|
1442
|
+
options?: ContentOptions,
|
|
1443
|
+
): Element;
|
|
1429
1444
|
remove(): Element;
|
|
1430
1445
|
removeAndKeepContent(): Element;
|
|
1431
|
-
setInnerContent(
|
|
1446
|
+
setInnerContent(
|
|
1447
|
+
content: string | ReadableStream | Response,
|
|
1448
|
+
options?: ContentOptions,
|
|
1449
|
+
): Element;
|
|
1432
1450
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1433
1451
|
}
|
|
1434
1452
|
export interface EndTag {
|
|
1435
1453
|
name: string;
|
|
1436
|
-
before(
|
|
1437
|
-
|
|
1454
|
+
before(
|
|
1455
|
+
content: string | ReadableStream | Response,
|
|
1456
|
+
options?: ContentOptions,
|
|
1457
|
+
): EndTag;
|
|
1458
|
+
after(
|
|
1459
|
+
content: string | ReadableStream | Response,
|
|
1460
|
+
options?: ContentOptions,
|
|
1461
|
+
): EndTag;
|
|
1438
1462
|
remove(): EndTag;
|
|
1439
1463
|
}
|
|
1440
1464
|
export interface Comment {
|
|
@@ -1449,9 +1473,18 @@ export interface Text {
|
|
|
1449
1473
|
readonly text: string;
|
|
1450
1474
|
readonly lastInTextNode: boolean;
|
|
1451
1475
|
readonly removed: boolean;
|
|
1452
|
-
before(
|
|
1453
|
-
|
|
1454
|
-
|
|
1476
|
+
before(
|
|
1477
|
+
content: string | ReadableStream | Response,
|
|
1478
|
+
options?: ContentOptions,
|
|
1479
|
+
): Text;
|
|
1480
|
+
after(
|
|
1481
|
+
content: string | ReadableStream | Response,
|
|
1482
|
+
options?: ContentOptions,
|
|
1483
|
+
): Text;
|
|
1484
|
+
replace(
|
|
1485
|
+
content: string | ReadableStream | Response,
|
|
1486
|
+
options?: ContentOptions,
|
|
1487
|
+
): Text;
|
|
1455
1488
|
remove(): Text;
|
|
1456
1489
|
}
|
|
1457
1490
|
export interface DocumentEnd {
|
package/package.json
CHANGED