@cloudflare/workers-types 4.20241224.0 → 4.20241230.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 +11 -44
- package/2021-11-03/index.ts +11 -44
- package/2022-01-31/index.d.ts +11 -44
- package/2022-01-31/index.ts +11 -44
- package/2022-03-21/index.d.ts +11 -44
- package/2022-03-21/index.ts +11 -44
- package/2022-08-04/index.d.ts +11 -44
- package/2022-08-04/index.ts +11 -44
- package/2022-10-31/index.d.ts +11 -44
- package/2022-10-31/index.ts +11 -44
- package/2022-11-30/index.d.ts +11 -44
- package/2022-11-30/index.ts +11 -44
- package/2023-03-01/index.d.ts +11 -44
- package/2023-03-01/index.ts +11 -44
- package/2023-07-01/index.d.ts +11 -44
- package/2023-07-01/index.ts +11 -44
- package/experimental/index.d.ts +11 -44
- package/experimental/index.ts +11 -44
- package/index.d.ts +11 -44
- package/index.ts +11 -44
- package/oldest/index.d.ts +11 -44
- package/oldest/index.ts +11 -44
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -1416,44 +1416,20 @@ 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
|
-
): Element;
|
|
1423
|
-
|
|
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;
|
|
1419
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1420
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1421
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1422
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1423
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1439
1424
|
remove(): Element;
|
|
1440
1425
|
removeAndKeepContent(): Element;
|
|
1441
|
-
setInnerContent(
|
|
1442
|
-
content: string | ReadableStream | Response,
|
|
1443
|
-
options?: ContentOptions,
|
|
1444
|
-
): Element;
|
|
1426
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1445
1427
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1446
1428
|
}
|
|
1447
1429
|
interface EndTag {
|
|
1448
1430
|
name: string;
|
|
1449
|
-
before(
|
|
1450
|
-
|
|
1451
|
-
options?: ContentOptions,
|
|
1452
|
-
): EndTag;
|
|
1453
|
-
after(
|
|
1454
|
-
content: string | ReadableStream | Response,
|
|
1455
|
-
options?: ContentOptions,
|
|
1456
|
-
): EndTag;
|
|
1431
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1432
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1457
1433
|
remove(): EndTag;
|
|
1458
1434
|
}
|
|
1459
1435
|
interface Comment {
|
|
@@ -1468,18 +1444,9 @@ interface Text {
|
|
|
1468
1444
|
readonly text: string;
|
|
1469
1445
|
readonly lastInTextNode: boolean;
|
|
1470
1446
|
readonly removed: boolean;
|
|
1471
|
-
before(
|
|
1472
|
-
|
|
1473
|
-
|
|
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;
|
|
1447
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1448
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1449
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1483
1450
|
remove(): Text;
|
|
1484
1451
|
}
|
|
1485
1452
|
interface DocumentEnd {
|
package/2021-11-03/index.ts
CHANGED
|
@@ -1421,44 +1421,20 @@ 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
|
-
): Element;
|
|
1428
|
-
|
|
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;
|
|
1424
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1425
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1426
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1427
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1428
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1444
1429
|
remove(): Element;
|
|
1445
1430
|
removeAndKeepContent(): Element;
|
|
1446
|
-
setInnerContent(
|
|
1447
|
-
content: string | ReadableStream | Response,
|
|
1448
|
-
options?: ContentOptions,
|
|
1449
|
-
): Element;
|
|
1431
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1450
1432
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1451
1433
|
}
|
|
1452
1434
|
export interface EndTag {
|
|
1453
1435
|
name: string;
|
|
1454
|
-
before(
|
|
1455
|
-
|
|
1456
|
-
options?: ContentOptions,
|
|
1457
|
-
): EndTag;
|
|
1458
|
-
after(
|
|
1459
|
-
content: string | ReadableStream | Response,
|
|
1460
|
-
options?: ContentOptions,
|
|
1461
|
-
): EndTag;
|
|
1436
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1437
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1462
1438
|
remove(): EndTag;
|
|
1463
1439
|
}
|
|
1464
1440
|
export interface Comment {
|
|
@@ -1473,18 +1449,9 @@ export interface Text {
|
|
|
1473
1449
|
readonly text: string;
|
|
1474
1450
|
readonly lastInTextNode: boolean;
|
|
1475
1451
|
readonly removed: boolean;
|
|
1476
|
-
before(
|
|
1477
|
-
|
|
1478
|
-
|
|
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;
|
|
1452
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1453
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1454
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1488
1455
|
remove(): Text;
|
|
1489
1456
|
}
|
|
1490
1457
|
export interface DocumentEnd {
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -1422,44 +1422,20 @@ interface Element {
|
|
|
1422
1422
|
hasAttribute(name: string): boolean;
|
|
1423
1423
|
setAttribute(name: string, value: string): Element;
|
|
1424
1424
|
removeAttribute(name: string): Element;
|
|
1425
|
-
before(
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
): Element;
|
|
1429
|
-
|
|
1430
|
-
content: string | ReadableStream | Response,
|
|
1431
|
-
options?: ContentOptions,
|
|
1432
|
-
): Element;
|
|
1433
|
-
prepend(
|
|
1434
|
-
content: string | ReadableStream | Response,
|
|
1435
|
-
options?: ContentOptions,
|
|
1436
|
-
): Element;
|
|
1437
|
-
append(
|
|
1438
|
-
content: string | ReadableStream | Response,
|
|
1439
|
-
options?: ContentOptions,
|
|
1440
|
-
): Element;
|
|
1441
|
-
replace(
|
|
1442
|
-
content: string | ReadableStream | Response,
|
|
1443
|
-
options?: ContentOptions,
|
|
1444
|
-
): Element;
|
|
1425
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1426
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1427
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1428
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1429
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1445
1430
|
remove(): Element;
|
|
1446
1431
|
removeAndKeepContent(): Element;
|
|
1447
|
-
setInnerContent(
|
|
1448
|
-
content: string | ReadableStream | Response,
|
|
1449
|
-
options?: ContentOptions,
|
|
1450
|
-
): Element;
|
|
1432
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1451
1433
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1452
1434
|
}
|
|
1453
1435
|
interface EndTag {
|
|
1454
1436
|
name: string;
|
|
1455
|
-
before(
|
|
1456
|
-
|
|
1457
|
-
options?: ContentOptions,
|
|
1458
|
-
): EndTag;
|
|
1459
|
-
after(
|
|
1460
|
-
content: string | ReadableStream | Response,
|
|
1461
|
-
options?: ContentOptions,
|
|
1462
|
-
): EndTag;
|
|
1437
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1438
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1463
1439
|
remove(): EndTag;
|
|
1464
1440
|
}
|
|
1465
1441
|
interface Comment {
|
|
@@ -1474,18 +1450,9 @@ interface Text {
|
|
|
1474
1450
|
readonly text: string;
|
|
1475
1451
|
readonly lastInTextNode: boolean;
|
|
1476
1452
|
readonly removed: boolean;
|
|
1477
|
-
before(
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
): Text;
|
|
1481
|
-
after(
|
|
1482
|
-
content: string | ReadableStream | Response,
|
|
1483
|
-
options?: ContentOptions,
|
|
1484
|
-
): Text;
|
|
1485
|
-
replace(
|
|
1486
|
-
content: string | ReadableStream | Response,
|
|
1487
|
-
options?: ContentOptions,
|
|
1488
|
-
): Text;
|
|
1453
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1454
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1455
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1489
1456
|
remove(): Text;
|
|
1490
1457
|
}
|
|
1491
1458
|
interface DocumentEnd {
|
package/2022-01-31/index.ts
CHANGED
|
@@ -1427,44 +1427,20 @@ export interface Element {
|
|
|
1427
1427
|
hasAttribute(name: string): boolean;
|
|
1428
1428
|
setAttribute(name: string, value: string): Element;
|
|
1429
1429
|
removeAttribute(name: string): Element;
|
|
1430
|
-
before(
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
): Element;
|
|
1434
|
-
|
|
1435
|
-
content: string | ReadableStream | Response,
|
|
1436
|
-
options?: ContentOptions,
|
|
1437
|
-
): Element;
|
|
1438
|
-
prepend(
|
|
1439
|
-
content: string | ReadableStream | Response,
|
|
1440
|
-
options?: ContentOptions,
|
|
1441
|
-
): Element;
|
|
1442
|
-
append(
|
|
1443
|
-
content: string | ReadableStream | Response,
|
|
1444
|
-
options?: ContentOptions,
|
|
1445
|
-
): Element;
|
|
1446
|
-
replace(
|
|
1447
|
-
content: string | ReadableStream | Response,
|
|
1448
|
-
options?: ContentOptions,
|
|
1449
|
-
): Element;
|
|
1430
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1431
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1432
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1433
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1434
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1450
1435
|
remove(): Element;
|
|
1451
1436
|
removeAndKeepContent(): Element;
|
|
1452
|
-
setInnerContent(
|
|
1453
|
-
content: string | ReadableStream | Response,
|
|
1454
|
-
options?: ContentOptions,
|
|
1455
|
-
): Element;
|
|
1437
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1456
1438
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1457
1439
|
}
|
|
1458
1440
|
export interface EndTag {
|
|
1459
1441
|
name: string;
|
|
1460
|
-
before(
|
|
1461
|
-
|
|
1462
|
-
options?: ContentOptions,
|
|
1463
|
-
): EndTag;
|
|
1464
|
-
after(
|
|
1465
|
-
content: string | ReadableStream | Response,
|
|
1466
|
-
options?: ContentOptions,
|
|
1467
|
-
): EndTag;
|
|
1442
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1443
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1468
1444
|
remove(): EndTag;
|
|
1469
1445
|
}
|
|
1470
1446
|
export interface Comment {
|
|
@@ -1479,18 +1455,9 @@ export interface Text {
|
|
|
1479
1455
|
readonly text: string;
|
|
1480
1456
|
readonly lastInTextNode: boolean;
|
|
1481
1457
|
readonly removed: boolean;
|
|
1482
|
-
before(
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
): Text;
|
|
1486
|
-
after(
|
|
1487
|
-
content: string | ReadableStream | Response,
|
|
1488
|
-
options?: ContentOptions,
|
|
1489
|
-
): Text;
|
|
1490
|
-
replace(
|
|
1491
|
-
content: string | ReadableStream | Response,
|
|
1492
|
-
options?: ContentOptions,
|
|
1493
|
-
): Text;
|
|
1458
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1459
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1460
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1494
1461
|
remove(): Text;
|
|
1495
1462
|
}
|
|
1496
1463
|
export interface DocumentEnd {
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -1440,44 +1440,20 @@ interface Element {
|
|
|
1440
1440
|
hasAttribute(name: string): boolean;
|
|
1441
1441
|
setAttribute(name: string, value: string): Element;
|
|
1442
1442
|
removeAttribute(name: string): Element;
|
|
1443
|
-
before(
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
): Element;
|
|
1447
|
-
|
|
1448
|
-
content: string | ReadableStream | Response,
|
|
1449
|
-
options?: ContentOptions,
|
|
1450
|
-
): Element;
|
|
1451
|
-
prepend(
|
|
1452
|
-
content: string | ReadableStream | Response,
|
|
1453
|
-
options?: ContentOptions,
|
|
1454
|
-
): Element;
|
|
1455
|
-
append(
|
|
1456
|
-
content: string | ReadableStream | Response,
|
|
1457
|
-
options?: ContentOptions,
|
|
1458
|
-
): Element;
|
|
1459
|
-
replace(
|
|
1460
|
-
content: string | ReadableStream | Response,
|
|
1461
|
-
options?: ContentOptions,
|
|
1462
|
-
): Element;
|
|
1443
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1444
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1445
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1446
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1447
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1463
1448
|
remove(): Element;
|
|
1464
1449
|
removeAndKeepContent(): Element;
|
|
1465
|
-
setInnerContent(
|
|
1466
|
-
content: string | ReadableStream | Response,
|
|
1467
|
-
options?: ContentOptions,
|
|
1468
|
-
): Element;
|
|
1450
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1469
1451
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1470
1452
|
}
|
|
1471
1453
|
interface EndTag {
|
|
1472
1454
|
name: string;
|
|
1473
|
-
before(
|
|
1474
|
-
|
|
1475
|
-
options?: ContentOptions,
|
|
1476
|
-
): EndTag;
|
|
1477
|
-
after(
|
|
1478
|
-
content: string | ReadableStream | Response,
|
|
1479
|
-
options?: ContentOptions,
|
|
1480
|
-
): EndTag;
|
|
1455
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1456
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1481
1457
|
remove(): EndTag;
|
|
1482
1458
|
}
|
|
1483
1459
|
interface Comment {
|
|
@@ -1492,18 +1468,9 @@ interface Text {
|
|
|
1492
1468
|
readonly text: string;
|
|
1493
1469
|
readonly lastInTextNode: boolean;
|
|
1494
1470
|
readonly removed: boolean;
|
|
1495
|
-
before(
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
): Text;
|
|
1499
|
-
after(
|
|
1500
|
-
content: string | ReadableStream | Response,
|
|
1501
|
-
options?: ContentOptions,
|
|
1502
|
-
): Text;
|
|
1503
|
-
replace(
|
|
1504
|
-
content: string | ReadableStream | Response,
|
|
1505
|
-
options?: ContentOptions,
|
|
1506
|
-
): Text;
|
|
1471
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1472
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1473
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1507
1474
|
remove(): Text;
|
|
1508
1475
|
}
|
|
1509
1476
|
interface DocumentEnd {
|
package/2022-03-21/index.ts
CHANGED
|
@@ -1445,44 +1445,20 @@ export interface Element {
|
|
|
1445
1445
|
hasAttribute(name: string): boolean;
|
|
1446
1446
|
setAttribute(name: string, value: string): Element;
|
|
1447
1447
|
removeAttribute(name: string): Element;
|
|
1448
|
-
before(
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
): Element;
|
|
1452
|
-
|
|
1453
|
-
content: string | ReadableStream | Response,
|
|
1454
|
-
options?: ContentOptions,
|
|
1455
|
-
): Element;
|
|
1456
|
-
prepend(
|
|
1457
|
-
content: string | ReadableStream | Response,
|
|
1458
|
-
options?: ContentOptions,
|
|
1459
|
-
): Element;
|
|
1460
|
-
append(
|
|
1461
|
-
content: string | ReadableStream | Response,
|
|
1462
|
-
options?: ContentOptions,
|
|
1463
|
-
): Element;
|
|
1464
|
-
replace(
|
|
1465
|
-
content: string | ReadableStream | Response,
|
|
1466
|
-
options?: ContentOptions,
|
|
1467
|
-
): Element;
|
|
1448
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1449
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1450
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1451
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1452
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1468
1453
|
remove(): Element;
|
|
1469
1454
|
removeAndKeepContent(): Element;
|
|
1470
|
-
setInnerContent(
|
|
1471
|
-
content: string | ReadableStream | Response,
|
|
1472
|
-
options?: ContentOptions,
|
|
1473
|
-
): Element;
|
|
1455
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1474
1456
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1475
1457
|
}
|
|
1476
1458
|
export interface EndTag {
|
|
1477
1459
|
name: string;
|
|
1478
|
-
before(
|
|
1479
|
-
|
|
1480
|
-
options?: ContentOptions,
|
|
1481
|
-
): EndTag;
|
|
1482
|
-
after(
|
|
1483
|
-
content: string | ReadableStream | Response,
|
|
1484
|
-
options?: ContentOptions,
|
|
1485
|
-
): EndTag;
|
|
1460
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1461
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1486
1462
|
remove(): EndTag;
|
|
1487
1463
|
}
|
|
1488
1464
|
export interface Comment {
|
|
@@ -1497,18 +1473,9 @@ export interface Text {
|
|
|
1497
1473
|
readonly text: string;
|
|
1498
1474
|
readonly lastInTextNode: boolean;
|
|
1499
1475
|
readonly removed: boolean;
|
|
1500
|
-
before(
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
): Text;
|
|
1504
|
-
after(
|
|
1505
|
-
content: string | ReadableStream | Response,
|
|
1506
|
-
options?: ContentOptions,
|
|
1507
|
-
): Text;
|
|
1508
|
-
replace(
|
|
1509
|
-
content: string | ReadableStream | Response,
|
|
1510
|
-
options?: ContentOptions,
|
|
1511
|
-
): Text;
|
|
1476
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1477
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1478
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1512
1479
|
remove(): Text;
|
|
1513
1480
|
}
|
|
1514
1481
|
export interface DocumentEnd {
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -1440,44 +1440,20 @@ interface Element {
|
|
|
1440
1440
|
hasAttribute(name: string): boolean;
|
|
1441
1441
|
setAttribute(name: string, value: string): Element;
|
|
1442
1442
|
removeAttribute(name: string): Element;
|
|
1443
|
-
before(
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
): Element;
|
|
1447
|
-
|
|
1448
|
-
content: string | ReadableStream | Response,
|
|
1449
|
-
options?: ContentOptions,
|
|
1450
|
-
): Element;
|
|
1451
|
-
prepend(
|
|
1452
|
-
content: string | ReadableStream | Response,
|
|
1453
|
-
options?: ContentOptions,
|
|
1454
|
-
): Element;
|
|
1455
|
-
append(
|
|
1456
|
-
content: string | ReadableStream | Response,
|
|
1457
|
-
options?: ContentOptions,
|
|
1458
|
-
): Element;
|
|
1459
|
-
replace(
|
|
1460
|
-
content: string | ReadableStream | Response,
|
|
1461
|
-
options?: ContentOptions,
|
|
1462
|
-
): Element;
|
|
1443
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1444
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1445
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1446
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1447
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1463
1448
|
remove(): Element;
|
|
1464
1449
|
removeAndKeepContent(): Element;
|
|
1465
|
-
setInnerContent(
|
|
1466
|
-
content: string | ReadableStream | Response,
|
|
1467
|
-
options?: ContentOptions,
|
|
1468
|
-
): Element;
|
|
1450
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1469
1451
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1470
1452
|
}
|
|
1471
1453
|
interface EndTag {
|
|
1472
1454
|
name: string;
|
|
1473
|
-
before(
|
|
1474
|
-
|
|
1475
|
-
options?: ContentOptions,
|
|
1476
|
-
): EndTag;
|
|
1477
|
-
after(
|
|
1478
|
-
content: string | ReadableStream | Response,
|
|
1479
|
-
options?: ContentOptions,
|
|
1480
|
-
): EndTag;
|
|
1455
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1456
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1481
1457
|
remove(): EndTag;
|
|
1482
1458
|
}
|
|
1483
1459
|
interface Comment {
|
|
@@ -1492,18 +1468,9 @@ interface Text {
|
|
|
1492
1468
|
readonly text: string;
|
|
1493
1469
|
readonly lastInTextNode: boolean;
|
|
1494
1470
|
readonly removed: boolean;
|
|
1495
|
-
before(
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
): Text;
|
|
1499
|
-
after(
|
|
1500
|
-
content: string | ReadableStream | Response,
|
|
1501
|
-
options?: ContentOptions,
|
|
1502
|
-
): Text;
|
|
1503
|
-
replace(
|
|
1504
|
-
content: string | ReadableStream | Response,
|
|
1505
|
-
options?: ContentOptions,
|
|
1506
|
-
): Text;
|
|
1471
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1472
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1473
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1507
1474
|
remove(): Text;
|
|
1508
1475
|
}
|
|
1509
1476
|
interface DocumentEnd {
|
package/2022-08-04/index.ts
CHANGED
|
@@ -1445,44 +1445,20 @@ export interface Element {
|
|
|
1445
1445
|
hasAttribute(name: string): boolean;
|
|
1446
1446
|
setAttribute(name: string, value: string): Element;
|
|
1447
1447
|
removeAttribute(name: string): Element;
|
|
1448
|
-
before(
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
): Element;
|
|
1452
|
-
|
|
1453
|
-
content: string | ReadableStream | Response,
|
|
1454
|
-
options?: ContentOptions,
|
|
1455
|
-
): Element;
|
|
1456
|
-
prepend(
|
|
1457
|
-
content: string | ReadableStream | Response,
|
|
1458
|
-
options?: ContentOptions,
|
|
1459
|
-
): Element;
|
|
1460
|
-
append(
|
|
1461
|
-
content: string | ReadableStream | Response,
|
|
1462
|
-
options?: ContentOptions,
|
|
1463
|
-
): Element;
|
|
1464
|
-
replace(
|
|
1465
|
-
content: string | ReadableStream | Response,
|
|
1466
|
-
options?: ContentOptions,
|
|
1467
|
-
): Element;
|
|
1448
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1449
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1450
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1451
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1452
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1468
1453
|
remove(): Element;
|
|
1469
1454
|
removeAndKeepContent(): Element;
|
|
1470
|
-
setInnerContent(
|
|
1471
|
-
content: string | ReadableStream | Response,
|
|
1472
|
-
options?: ContentOptions,
|
|
1473
|
-
): Element;
|
|
1455
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1474
1456
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1475
1457
|
}
|
|
1476
1458
|
export interface EndTag {
|
|
1477
1459
|
name: string;
|
|
1478
|
-
before(
|
|
1479
|
-
|
|
1480
|
-
options?: ContentOptions,
|
|
1481
|
-
): EndTag;
|
|
1482
|
-
after(
|
|
1483
|
-
content: string | ReadableStream | Response,
|
|
1484
|
-
options?: ContentOptions,
|
|
1485
|
-
): EndTag;
|
|
1460
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1461
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1486
1462
|
remove(): EndTag;
|
|
1487
1463
|
}
|
|
1488
1464
|
export interface Comment {
|
|
@@ -1497,18 +1473,9 @@ export interface Text {
|
|
|
1497
1473
|
readonly text: string;
|
|
1498
1474
|
readonly lastInTextNode: boolean;
|
|
1499
1475
|
readonly removed: boolean;
|
|
1500
|
-
before(
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
): Text;
|
|
1504
|
-
after(
|
|
1505
|
-
content: string | ReadableStream | Response,
|
|
1506
|
-
options?: ContentOptions,
|
|
1507
|
-
): Text;
|
|
1508
|
-
replace(
|
|
1509
|
-
content: string | ReadableStream | Response,
|
|
1510
|
-
options?: ContentOptions,
|
|
1511
|
-
): Text;
|
|
1476
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1477
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1478
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1512
1479
|
remove(): Text;
|
|
1513
1480
|
}
|
|
1514
1481
|
export interface DocumentEnd {
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -1440,44 +1440,20 @@ interface Element {
|
|
|
1440
1440
|
hasAttribute(name: string): boolean;
|
|
1441
1441
|
setAttribute(name: string, value: string): Element;
|
|
1442
1442
|
removeAttribute(name: string): Element;
|
|
1443
|
-
before(
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
): Element;
|
|
1447
|
-
|
|
1448
|
-
content: string | ReadableStream | Response,
|
|
1449
|
-
options?: ContentOptions,
|
|
1450
|
-
): Element;
|
|
1451
|
-
prepend(
|
|
1452
|
-
content: string | ReadableStream | Response,
|
|
1453
|
-
options?: ContentOptions,
|
|
1454
|
-
): Element;
|
|
1455
|
-
append(
|
|
1456
|
-
content: string | ReadableStream | Response,
|
|
1457
|
-
options?: ContentOptions,
|
|
1458
|
-
): Element;
|
|
1459
|
-
replace(
|
|
1460
|
-
content: string | ReadableStream | Response,
|
|
1461
|
-
options?: ContentOptions,
|
|
1462
|
-
): Element;
|
|
1443
|
+
before(content: string, options?: ContentOptions): Element;
|
|
1444
|
+
after(content: string, options?: ContentOptions): Element;
|
|
1445
|
+
prepend(content: string, options?: ContentOptions): Element;
|
|
1446
|
+
append(content: string, options?: ContentOptions): Element;
|
|
1447
|
+
replace(content: string, options?: ContentOptions): Element;
|
|
1463
1448
|
remove(): Element;
|
|
1464
1449
|
removeAndKeepContent(): Element;
|
|
1465
|
-
setInnerContent(
|
|
1466
|
-
content: string | ReadableStream | Response,
|
|
1467
|
-
options?: ContentOptions,
|
|
1468
|
-
): Element;
|
|
1450
|
+
setInnerContent(content: string, options?: ContentOptions): Element;
|
|
1469
1451
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1470
1452
|
}
|
|
1471
1453
|
interface EndTag {
|
|
1472
1454
|
name: string;
|
|
1473
|
-
before(
|
|
1474
|
-
|
|
1475
|
-
options?: ContentOptions,
|
|
1476
|
-
): EndTag;
|
|
1477
|
-
after(
|
|
1478
|
-
content: string | ReadableStream | Response,
|
|
1479
|
-
options?: ContentOptions,
|
|
1480
|
-
): EndTag;
|
|
1455
|
+
before(content: string, options?: ContentOptions): EndTag;
|
|
1456
|
+
after(content: string, options?: ContentOptions): EndTag;
|
|
1481
1457
|
remove(): EndTag;
|
|
1482
1458
|
}
|
|
1483
1459
|
interface Comment {
|
|
@@ -1492,18 +1468,9 @@ interface Text {
|
|
|
1492
1468
|
readonly text: string;
|
|
1493
1469
|
readonly lastInTextNode: boolean;
|
|
1494
1470
|
readonly removed: boolean;
|
|
1495
|
-
before(
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
): Text;
|
|
1499
|
-
after(
|
|
1500
|
-
content: string | ReadableStream | Response,
|
|
1501
|
-
options?: ContentOptions,
|
|
1502
|
-
): Text;
|
|
1503
|
-
replace(
|
|
1504
|
-
content: string | ReadableStream | Response,
|
|
1505
|
-
options?: ContentOptions,
|
|
1506
|
-
): Text;
|
|
1471
|
+
before(content: string, options?: ContentOptions): Text;
|
|
1472
|
+
after(content: string, options?: ContentOptions): Text;
|
|
1473
|
+
replace(content: string, options?: ContentOptions): Text;
|
|
1507
1474
|
remove(): Text;
|
|
1508
1475
|
}
|
|
1509
1476
|
interface DocumentEnd {
|