@@ -4786,6 +4786,16 @@ interface ElementContentEditable {
4786
4786
readonly isContentEditable: boolean;
4787
4787
}
4788
4788
4789
+ interface ElementInternals extends ARIAMixin {
4790
+ /** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
4791
+ readonly shadowRoot: ShadowRoot | null;
4792
+ }
4793
+
4794
+ declare var ElementInternals: {
4795
+ prototype: ElementInternals;
4796
+ new(): ElementInternals;
4797
+ };
4798
+
4789
4799
/** Events providing information related to errors in scripts or in files. */
4790
4800
interface ErrorEvent extends Event {
4791
4801
readonly colno: number;
@@ -5025,13 +5035,10 @@ declare var FileSystemDirectoryEntry: {
5025
5035
new(): FileSystemDirectoryEntry;
5026
5036
};
5027
5037
5028
- /** @deprecated */
5029
5038
interface FileSystemDirectoryReader {
5030
- /** @deprecated */
5031
5039
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
5032
5040
}
5033
5041
5034
- /** @deprecated */
5035
5042
declare var FileSystemDirectoryReader: {
5036
5043
prototype: FileSystemDirectoryReader;
5037
5044
new(): FileSystemDirectoryReader;
@@ -5584,6 +5591,7 @@ interface GlobalEventHandlers {
5584
5591
* @param ev The event.
5585
5592
*/
5586
5593
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5594
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
5587
5595
/**
5588
5596
* Occurs when the seek operation ends.
5589
5597
* @param ev The event.
@@ -8503,6 +8511,7 @@ interface IDBTransactionEventMap {
8503
8511
interface IDBTransaction extends EventTarget {
8504
8512
/** Returns the transaction's connection. */
8505
8513
readonly db: IDBDatabase;
8514
+ readonly durability: IDBTransactionDurability;
8506
8515
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
8507
8516
readonly error: DOMException | null;
8508
8517
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
@@ -16739,7 +16748,7 @@ interface PositionErrorCallback {
16739
16748
}
16740
16749
16741
16750
interface QueuingStrategySize<T = any> {
16742
- (chunk? : T): number;
16751
+ (chunk: T): number;
16743
16752
}
16744
16753
16745
16754
interface RTCPeerConnectionErrorCallback {
@@ -17332,6 +17341,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
17332
17341
* @param ev The event.
17333
17342
*/
17334
17343
declare var onscroll: ((this: Window, ev: Event) => any) | null;
17344
+ declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
17335
17345
/**
17336
17346
* Occurs when the seek operation ends.
17337
17347
* @param ev The event.
@@ -17546,6 +17556,7 @@ type GamepadMappingType = "" | "standard" | "xr-standard";
17546
17556
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
17547
17557
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
17548
17558
type IDBRequestReadyState = "done" | "pending";
17559
+ type IDBTransactionDurability = "default" | "relaxed" | "strict";
17549
17560
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
17550
17561
type ImageOrientation = "flipY" | "none";
17551
17562
type ImageSmoothingQuality = "high" | "low" | "medium";
0 commit comments