@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/2022-10-31/index.d.ts
CHANGED
|
@@ -1440,20 +1440,44 @@ 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
|
-
|
|
1447
|
-
|
|
1443
|
+
before(
|
|
1444
|
+
content: string | ReadableStream | Response,
|
|
1445
|
+
options?: ContentOptions,
|
|
1446
|
+
): Element;
|
|
1447
|
+
after(
|
|
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;
|
|
1448
1463
|
remove(): Element;
|
|
1449
1464
|
removeAndKeepContent(): Element;
|
|
1450
|
-
setInnerContent(
|
|
1465
|
+
setInnerContent(
|
|
1466
|
+
content: string | ReadableStream | Response,
|
|
1467
|
+
options?: ContentOptions,
|
|
1468
|
+
): Element;
|
|
1451
1469
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1452
1470
|
}
|
|
1453
1471
|
interface EndTag {
|
|
1454
1472
|
name: string;
|
|
1455
|
-
before(
|
|
1456
|
-
|
|
1473
|
+
before(
|
|
1474
|
+
content: string | ReadableStream | Response,
|
|
1475
|
+
options?: ContentOptions,
|
|
1476
|
+
): EndTag;
|
|
1477
|
+
after(
|
|
1478
|
+
content: string | ReadableStream | Response,
|
|
1479
|
+
options?: ContentOptions,
|
|
1480
|
+
): EndTag;
|
|
1457
1481
|
remove(): EndTag;
|
|
1458
1482
|
}
|
|
1459
1483
|
interface Comment {
|
|
@@ -1468,9 +1492,18 @@ interface Text {
|
|
|
1468
1492
|
readonly text: string;
|
|
1469
1493
|
readonly lastInTextNode: boolean;
|
|
1470
1494
|
readonly removed: boolean;
|
|
1471
|
-
before(
|
|
1472
|
-
|
|
1473
|
-
|
|
1495
|
+
before(
|
|
1496
|
+
content: string | ReadableStream | Response,
|
|
1497
|
+
options?: ContentOptions,
|
|
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;
|
|
1474
1507
|
remove(): Text;
|
|
1475
1508
|
}
|
|
1476
1509
|
interface DocumentEnd {
|
|
@@ -5433,6 +5466,7 @@ declare module "cloudflare:workers" {
|
|
|
5433
5466
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
5434
5467
|
protected ctx: ExecutionContext;
|
|
5435
5468
|
protected env: Env;
|
|
5469
|
+
constructor(ctx: ExecutionContext, env: Env);
|
|
5436
5470
|
run(
|
|
5437
5471
|
event: Readonly<WorkflowEvent<T>>,
|
|
5438
5472
|
step: WorkflowStep,
|
package/2022-10-31/index.ts
CHANGED
|
@@ -1445,20 +1445,44 @@ 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
|
-
|
|
1452
|
-
|
|
1448
|
+
before(
|
|
1449
|
+
content: string | ReadableStream | Response,
|
|
1450
|
+
options?: ContentOptions,
|
|
1451
|
+
): Element;
|
|
1452
|
+
after(
|
|
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;
|
|
1453
1468
|
remove(): Element;
|
|
1454
1469
|
removeAndKeepContent(): Element;
|
|
1455
|
-
setInnerContent(
|
|
1470
|
+
setInnerContent(
|
|
1471
|
+
content: string | ReadableStream | Response,
|
|
1472
|
+
options?: ContentOptions,
|
|
1473
|
+
): Element;
|
|
1456
1474
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1457
1475
|
}
|
|
1458
1476
|
export interface EndTag {
|
|
1459
1477
|
name: string;
|
|
1460
|
-
before(
|
|
1461
|
-
|
|
1478
|
+
before(
|
|
1479
|
+
content: string | ReadableStream | Response,
|
|
1480
|
+
options?: ContentOptions,
|
|
1481
|
+
): EndTag;
|
|
1482
|
+
after(
|
|
1483
|
+
content: string | ReadableStream | Response,
|
|
1484
|
+
options?: ContentOptions,
|
|
1485
|
+
): EndTag;
|
|
1462
1486
|
remove(): EndTag;
|
|
1463
1487
|
}
|
|
1464
1488
|
export interface Comment {
|
|
@@ -1473,9 +1497,18 @@ export interface Text {
|
|
|
1473
1497
|
readonly text: string;
|
|
1474
1498
|
readonly lastInTextNode: boolean;
|
|
1475
1499
|
readonly removed: boolean;
|
|
1476
|
-
before(
|
|
1477
|
-
|
|
1478
|
-
|
|
1500
|
+
before(
|
|
1501
|
+
content: string | ReadableStream | Response,
|
|
1502
|
+
options?: ContentOptions,
|
|
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;
|
|
1479
1512
|
remove(): Text;
|
|
1480
1513
|
}
|
|
1481
1514
|
export interface DocumentEnd {
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -1445,20 +1445,44 @@ 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
|
-
|
|
1452
|
-
|
|
1448
|
+
before(
|
|
1449
|
+
content: string | ReadableStream | Response,
|
|
1450
|
+
options?: ContentOptions,
|
|
1451
|
+
): Element;
|
|
1452
|
+
after(
|
|
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;
|
|
1453
1468
|
remove(): Element;
|
|
1454
1469
|
removeAndKeepContent(): Element;
|
|
1455
|
-
setInnerContent(
|
|
1470
|
+
setInnerContent(
|
|
1471
|
+
content: string | ReadableStream | Response,
|
|
1472
|
+
options?: ContentOptions,
|
|
1473
|
+
): Element;
|
|
1456
1474
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1457
1475
|
}
|
|
1458
1476
|
interface EndTag {
|
|
1459
1477
|
name: string;
|
|
1460
|
-
before(
|
|
1461
|
-
|
|
1478
|
+
before(
|
|
1479
|
+
content: string | ReadableStream | Response,
|
|
1480
|
+
options?: ContentOptions,
|
|
1481
|
+
): EndTag;
|
|
1482
|
+
after(
|
|
1483
|
+
content: string | ReadableStream | Response,
|
|
1484
|
+
options?: ContentOptions,
|
|
1485
|
+
): EndTag;
|
|
1462
1486
|
remove(): EndTag;
|
|
1463
1487
|
}
|
|
1464
1488
|
interface Comment {
|
|
@@ -1473,9 +1497,18 @@ interface Text {
|
|
|
1473
1497
|
readonly text: string;
|
|
1474
1498
|
readonly lastInTextNode: boolean;
|
|
1475
1499
|
readonly removed: boolean;
|
|
1476
|
-
before(
|
|
1477
|
-
|
|
1478
|
-
|
|
1500
|
+
before(
|
|
1501
|
+
content: string | ReadableStream | Response,
|
|
1502
|
+
options?: ContentOptions,
|
|
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;
|
|
1479
1512
|
remove(): Text;
|
|
1480
1513
|
}
|
|
1481
1514
|
interface DocumentEnd {
|
|
@@ -5438,6 +5471,7 @@ declare module "cloudflare:workers" {
|
|
|
5438
5471
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
5439
5472
|
protected ctx: ExecutionContext;
|
|
5440
5473
|
protected env: Env;
|
|
5474
|
+
constructor(ctx: ExecutionContext, env: Env);
|
|
5441
5475
|
run(
|
|
5442
5476
|
event: Readonly<WorkflowEvent<T>>,
|
|
5443
5477
|
step: WorkflowStep,
|
package/2022-11-30/index.ts
CHANGED
|
@@ -1450,20 +1450,44 @@ export interface Element {
|
|
|
1450
1450
|
hasAttribute(name: string): boolean;
|
|
1451
1451
|
setAttribute(name: string, value: string): Element;
|
|
1452
1452
|
removeAttribute(name: string): Element;
|
|
1453
|
-
before(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1453
|
+
before(
|
|
1454
|
+
content: string | ReadableStream | Response,
|
|
1455
|
+
options?: ContentOptions,
|
|
1456
|
+
): Element;
|
|
1457
|
+
after(
|
|
1458
|
+
content: string | ReadableStream | Response,
|
|
1459
|
+
options?: ContentOptions,
|
|
1460
|
+
): Element;
|
|
1461
|
+
prepend(
|
|
1462
|
+
content: string | ReadableStream | Response,
|
|
1463
|
+
options?: ContentOptions,
|
|
1464
|
+
): Element;
|
|
1465
|
+
append(
|
|
1466
|
+
content: string | ReadableStream | Response,
|
|
1467
|
+
options?: ContentOptions,
|
|
1468
|
+
): Element;
|
|
1469
|
+
replace(
|
|
1470
|
+
content: string | ReadableStream | Response,
|
|
1471
|
+
options?: ContentOptions,
|
|
1472
|
+
): Element;
|
|
1458
1473
|
remove(): Element;
|
|
1459
1474
|
removeAndKeepContent(): Element;
|
|
1460
|
-
setInnerContent(
|
|
1475
|
+
setInnerContent(
|
|
1476
|
+
content: string | ReadableStream | Response,
|
|
1477
|
+
options?: ContentOptions,
|
|
1478
|
+
): Element;
|
|
1461
1479
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1462
1480
|
}
|
|
1463
1481
|
export interface EndTag {
|
|
1464
1482
|
name: string;
|
|
1465
|
-
before(
|
|
1466
|
-
|
|
1483
|
+
before(
|
|
1484
|
+
content: string | ReadableStream | Response,
|
|
1485
|
+
options?: ContentOptions,
|
|
1486
|
+
): EndTag;
|
|
1487
|
+
after(
|
|
1488
|
+
content: string | ReadableStream | Response,
|
|
1489
|
+
options?: ContentOptions,
|
|
1490
|
+
): EndTag;
|
|
1467
1491
|
remove(): EndTag;
|
|
1468
1492
|
}
|
|
1469
1493
|
export interface Comment {
|
|
@@ -1478,9 +1502,18 @@ export interface Text {
|
|
|
1478
1502
|
readonly text: string;
|
|
1479
1503
|
readonly lastInTextNode: boolean;
|
|
1480
1504
|
readonly removed: boolean;
|
|
1481
|
-
before(
|
|
1482
|
-
|
|
1483
|
-
|
|
1505
|
+
before(
|
|
1506
|
+
content: string | ReadableStream | Response,
|
|
1507
|
+
options?: ContentOptions,
|
|
1508
|
+
): Text;
|
|
1509
|
+
after(
|
|
1510
|
+
content: string | ReadableStream | Response,
|
|
1511
|
+
options?: ContentOptions,
|
|
1512
|
+
): Text;
|
|
1513
|
+
replace(
|
|
1514
|
+
content: string | ReadableStream | Response,
|
|
1515
|
+
options?: ContentOptions,
|
|
1516
|
+
): Text;
|
|
1484
1517
|
remove(): Text;
|
|
1485
1518
|
}
|
|
1486
1519
|
export interface DocumentEnd {
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -1445,20 +1445,44 @@ 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
|
-
|
|
1452
|
-
|
|
1448
|
+
before(
|
|
1449
|
+
content: string | ReadableStream | Response,
|
|
1450
|
+
options?: ContentOptions,
|
|
1451
|
+
): Element;
|
|
1452
|
+
after(
|
|
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;
|
|
1453
1468
|
remove(): Element;
|
|
1454
1469
|
removeAndKeepContent(): Element;
|
|
1455
|
-
setInnerContent(
|
|
1470
|
+
setInnerContent(
|
|
1471
|
+
content: string | ReadableStream | Response,
|
|
1472
|
+
options?: ContentOptions,
|
|
1473
|
+
): Element;
|
|
1456
1474
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1457
1475
|
}
|
|
1458
1476
|
interface EndTag {
|
|
1459
1477
|
name: string;
|
|
1460
|
-
before(
|
|
1461
|
-
|
|
1478
|
+
before(
|
|
1479
|
+
content: string | ReadableStream | Response,
|
|
1480
|
+
options?: ContentOptions,
|
|
1481
|
+
): EndTag;
|
|
1482
|
+
after(
|
|
1483
|
+
content: string | ReadableStream | Response,
|
|
1484
|
+
options?: ContentOptions,
|
|
1485
|
+
): EndTag;
|
|
1462
1486
|
remove(): EndTag;
|
|
1463
1487
|
}
|
|
1464
1488
|
interface Comment {
|
|
@@ -1473,9 +1497,18 @@ interface Text {
|
|
|
1473
1497
|
readonly text: string;
|
|
1474
1498
|
readonly lastInTextNode: boolean;
|
|
1475
1499
|
readonly removed: boolean;
|
|
1476
|
-
before(
|
|
1477
|
-
|
|
1478
|
-
|
|
1500
|
+
before(
|
|
1501
|
+
content: string | ReadableStream | Response,
|
|
1502
|
+
options?: ContentOptions,
|
|
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;
|
|
1479
1512
|
remove(): Text;
|
|
1480
1513
|
}
|
|
1481
1514
|
interface DocumentEnd {
|
|
@@ -5440,6 +5473,7 @@ declare module "cloudflare:workers" {
|
|
|
5440
5473
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
5441
5474
|
protected ctx: ExecutionContext;
|
|
5442
5475
|
protected env: Env;
|
|
5476
|
+
constructor(ctx: ExecutionContext, env: Env);
|
|
5443
5477
|
run(
|
|
5444
5478
|
event: Readonly<WorkflowEvent<T>>,
|
|
5445
5479
|
step: WorkflowStep,
|
package/2023-03-01/index.ts
CHANGED
|
@@ -1450,20 +1450,44 @@ export interface Element {
|
|
|
1450
1450
|
hasAttribute(name: string): boolean;
|
|
1451
1451
|
setAttribute(name: string, value: string): Element;
|
|
1452
1452
|
removeAttribute(name: string): Element;
|
|
1453
|
-
before(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1453
|
+
before(
|
|
1454
|
+
content: string | ReadableStream | Response,
|
|
1455
|
+
options?: ContentOptions,
|
|
1456
|
+
): Element;
|
|
1457
|
+
after(
|
|
1458
|
+
content: string | ReadableStream | Response,
|
|
1459
|
+
options?: ContentOptions,
|
|
1460
|
+
): Element;
|
|
1461
|
+
prepend(
|
|
1462
|
+
content: string | ReadableStream | Response,
|
|
1463
|
+
options?: ContentOptions,
|
|
1464
|
+
): Element;
|
|
1465
|
+
append(
|
|
1466
|
+
content: string | ReadableStream | Response,
|
|
1467
|
+
options?: ContentOptions,
|
|
1468
|
+
): Element;
|
|
1469
|
+
replace(
|
|
1470
|
+
content: string | ReadableStream | Response,
|
|
1471
|
+
options?: ContentOptions,
|
|
1472
|
+
): Element;
|
|
1458
1473
|
remove(): Element;
|
|
1459
1474
|
removeAndKeepContent(): Element;
|
|
1460
|
-
setInnerContent(
|
|
1475
|
+
setInnerContent(
|
|
1476
|
+
content: string | ReadableStream | Response,
|
|
1477
|
+
options?: ContentOptions,
|
|
1478
|
+
): Element;
|
|
1461
1479
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1462
1480
|
}
|
|
1463
1481
|
export interface EndTag {
|
|
1464
1482
|
name: string;
|
|
1465
|
-
before(
|
|
1466
|
-
|
|
1483
|
+
before(
|
|
1484
|
+
content: string | ReadableStream | Response,
|
|
1485
|
+
options?: ContentOptions,
|
|
1486
|
+
): EndTag;
|
|
1487
|
+
after(
|
|
1488
|
+
content: string | ReadableStream | Response,
|
|
1489
|
+
options?: ContentOptions,
|
|
1490
|
+
): EndTag;
|
|
1467
1491
|
remove(): EndTag;
|
|
1468
1492
|
}
|
|
1469
1493
|
export interface Comment {
|
|
@@ -1478,9 +1502,18 @@ export interface Text {
|
|
|
1478
1502
|
readonly text: string;
|
|
1479
1503
|
readonly lastInTextNode: boolean;
|
|
1480
1504
|
readonly removed: boolean;
|
|
1481
|
-
before(
|
|
1482
|
-
|
|
1483
|
-
|
|
1505
|
+
before(
|
|
1506
|
+
content: string | ReadableStream | Response,
|
|
1507
|
+
options?: ContentOptions,
|
|
1508
|
+
): Text;
|
|
1509
|
+
after(
|
|
1510
|
+
content: string | ReadableStream | Response,
|
|
1511
|
+
options?: ContentOptions,
|
|
1512
|
+
): Text;
|
|
1513
|
+
replace(
|
|
1514
|
+
content: string | ReadableStream | Response,
|
|
1515
|
+
options?: ContentOptions,
|
|
1516
|
+
): Text;
|
|
1484
1517
|
remove(): Text;
|
|
1485
1518
|
}
|
|
1486
1519
|
export interface DocumentEnd {
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -1445,20 +1445,44 @@ 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
|
-
|
|
1452
|
-
|
|
1448
|
+
before(
|
|
1449
|
+
content: string | ReadableStream | Response,
|
|
1450
|
+
options?: ContentOptions,
|
|
1451
|
+
): Element;
|
|
1452
|
+
after(
|
|
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;
|
|
1453
1468
|
remove(): Element;
|
|
1454
1469
|
removeAndKeepContent(): Element;
|
|
1455
|
-
setInnerContent(
|
|
1470
|
+
setInnerContent(
|
|
1471
|
+
content: string | ReadableStream | Response,
|
|
1472
|
+
options?: ContentOptions,
|
|
1473
|
+
): Element;
|
|
1456
1474
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1457
1475
|
}
|
|
1458
1476
|
interface EndTag {
|
|
1459
1477
|
name: string;
|
|
1460
|
-
before(
|
|
1461
|
-
|
|
1478
|
+
before(
|
|
1479
|
+
content: string | ReadableStream | Response,
|
|
1480
|
+
options?: ContentOptions,
|
|
1481
|
+
): EndTag;
|
|
1482
|
+
after(
|
|
1483
|
+
content: string | ReadableStream | Response,
|
|
1484
|
+
options?: ContentOptions,
|
|
1485
|
+
): EndTag;
|
|
1462
1486
|
remove(): EndTag;
|
|
1463
1487
|
}
|
|
1464
1488
|
interface Comment {
|
|
@@ -1473,9 +1497,18 @@ interface Text {
|
|
|
1473
1497
|
readonly text: string;
|
|
1474
1498
|
readonly lastInTextNode: boolean;
|
|
1475
1499
|
readonly removed: boolean;
|
|
1476
|
-
before(
|
|
1477
|
-
|
|
1478
|
-
|
|
1500
|
+
before(
|
|
1501
|
+
content: string | ReadableStream | Response,
|
|
1502
|
+
options?: ContentOptions,
|
|
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;
|
|
1479
1512
|
remove(): Text;
|
|
1480
1513
|
}
|
|
1481
1514
|
interface DocumentEnd {
|
|
@@ -5440,6 +5473,7 @@ declare module "cloudflare:workers" {
|
|
|
5440
5473
|
[Rpc.__WORKFLOW_ENTRYPOINT_BRAND]: never;
|
|
5441
5474
|
protected ctx: ExecutionContext;
|
|
5442
5475
|
protected env: Env;
|
|
5476
|
+
constructor(ctx: ExecutionContext, env: Env);
|
|
5443
5477
|
run(
|
|
5444
5478
|
event: Readonly<WorkflowEvent<T>>,
|
|
5445
5479
|
step: WorkflowStep,
|
package/2023-07-01/index.ts
CHANGED
|
@@ -1450,20 +1450,44 @@ export interface Element {
|
|
|
1450
1450
|
hasAttribute(name: string): boolean;
|
|
1451
1451
|
setAttribute(name: string, value: string): Element;
|
|
1452
1452
|
removeAttribute(name: string): Element;
|
|
1453
|
-
before(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1453
|
+
before(
|
|
1454
|
+
content: string | ReadableStream | Response,
|
|
1455
|
+
options?: ContentOptions,
|
|
1456
|
+
): Element;
|
|
1457
|
+
after(
|
|
1458
|
+
content: string | ReadableStream | Response,
|
|
1459
|
+
options?: ContentOptions,
|
|
1460
|
+
): Element;
|
|
1461
|
+
prepend(
|
|
1462
|
+
content: string | ReadableStream | Response,
|
|
1463
|
+
options?: ContentOptions,
|
|
1464
|
+
): Element;
|
|
1465
|
+
append(
|
|
1466
|
+
content: string | ReadableStream | Response,
|
|
1467
|
+
options?: ContentOptions,
|
|
1468
|
+
): Element;
|
|
1469
|
+
replace(
|
|
1470
|
+
content: string | ReadableStream | Response,
|
|
1471
|
+
options?: ContentOptions,
|
|
1472
|
+
): Element;
|
|
1458
1473
|
remove(): Element;
|
|
1459
1474
|
removeAndKeepContent(): Element;
|
|
1460
|
-
setInnerContent(
|
|
1475
|
+
setInnerContent(
|
|
1476
|
+
content: string | ReadableStream | Response,
|
|
1477
|
+
options?: ContentOptions,
|
|
1478
|
+
): Element;
|
|
1461
1479
|
onEndTag(handler: (tag: EndTag) => void | Promise<void>): void;
|
|
1462
1480
|
}
|
|
1463
1481
|
export interface EndTag {
|
|
1464
1482
|
name: string;
|
|
1465
|
-
before(
|
|
1466
|
-
|
|
1483
|
+
before(
|
|
1484
|
+
content: string | ReadableStream | Response,
|
|
1485
|
+
options?: ContentOptions,
|
|
1486
|
+
): EndTag;
|
|
1487
|
+
after(
|
|
1488
|
+
content: string | ReadableStream | Response,
|
|
1489
|
+
options?: ContentOptions,
|
|
1490
|
+
): EndTag;
|
|
1467
1491
|
remove(): EndTag;
|
|
1468
1492
|
}
|
|
1469
1493
|
export interface Comment {
|
|
@@ -1478,9 +1502,18 @@ export interface Text {
|
|
|
1478
1502
|
readonly text: string;
|
|
1479
1503
|
readonly lastInTextNode: boolean;
|
|
1480
1504
|
readonly removed: boolean;
|
|
1481
|
-
before(
|
|
1482
|
-
|
|
1483
|
-
|
|
1505
|
+
before(
|
|
1506
|
+
content: string | ReadableStream | Response,
|
|
1507
|
+
options?: ContentOptions,
|
|
1508
|
+
): Text;
|
|
1509
|
+
after(
|
|
1510
|
+
content: string | ReadableStream | Response,
|
|
1511
|
+
options?: ContentOptions,
|
|
1512
|
+
): Text;
|
|
1513
|
+
replace(
|
|
1514
|
+
content: string | ReadableStream | Response,
|
|
1515
|
+
options?: ContentOptions,
|
|
1516
|
+
): Text;
|
|
1484
1517
|
remove(): Text;
|
|
1485
1518
|
}
|
|
1486
1519
|
export interface DocumentEnd {
|