@types/web 0.0.54 → 0.0.57
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/README.md +1 -1
- package/index.d.ts +18 -9
- package/iterable.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.57 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.57.
|
package/index.d.ts
CHANGED
|
@@ -3584,6 +3584,7 @@ declare var ClipboardEvent: {
|
|
|
3584
3584
|
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
|
|
3585
3585
|
};
|
|
3586
3586
|
|
|
3587
|
+
/** Available only in secure contexts. */
|
|
3587
3588
|
interface ClipboardItem {
|
|
3588
3589
|
readonly types: ReadonlyArray<string>;
|
|
3589
3590
|
getType(type: string): Promise<Blob>;
|
|
@@ -3591,7 +3592,7 @@ interface ClipboardItem {
|
|
|
3591
3592
|
|
|
3592
3593
|
declare var ClipboardItem: {
|
|
3593
3594
|
prototype: ClipboardItem;
|
|
3594
|
-
new(items: Record<string,
|
|
3595
|
+
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
|
|
3595
3596
|
};
|
|
3596
3597
|
|
|
3597
3598
|
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
|
|
@@ -4261,6 +4262,7 @@ declare var DeviceOrientationEvent: {
|
|
|
4261
4262
|
};
|
|
4262
4263
|
|
|
4263
4264
|
interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
|
|
4265
|
+
"DOMContentLoaded": Event;
|
|
4264
4266
|
"fullscreenchange": Event;
|
|
4265
4267
|
"fullscreenerror": Event;
|
|
4266
4268
|
"pointerlockchange": Event;
|
|
@@ -4478,6 +4480,8 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
|
|
|
4478
4480
|
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
|
|
4479
4481
|
createEvent(eventInterface: "DragEvent"): DragEvent;
|
|
4480
4482
|
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
|
|
4483
|
+
createEvent(eventInterface: "Event"): Event;
|
|
4484
|
+
createEvent(eventInterface: "Events"): Event;
|
|
4481
4485
|
createEvent(eventInterface: "FocusEvent"): FocusEvent;
|
|
4482
4486
|
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
|
|
4483
4487
|
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
|
|
@@ -9765,7 +9769,7 @@ declare var NavigationPreloadManager: {
|
|
|
9765
9769
|
};
|
|
9766
9770
|
|
|
9767
9771
|
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
|
|
9768
|
-
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9772
|
+
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
|
|
9769
9773
|
/** Available only in secure contexts. */
|
|
9770
9774
|
readonly clipboard: Clipboard;
|
|
9771
9775
|
/** Available only in secure contexts. */
|
|
@@ -9837,6 +9841,11 @@ interface NavigatorLanguage {
|
|
|
9837
9841
|
readonly languages: ReadonlyArray<string>;
|
|
9838
9842
|
}
|
|
9839
9843
|
|
|
9844
|
+
/** Available only in secure contexts. */
|
|
9845
|
+
interface NavigatorLocks {
|
|
9846
|
+
readonly locks: LockManager;
|
|
9847
|
+
}
|
|
9848
|
+
|
|
9840
9849
|
interface NavigatorNetworkInformation {
|
|
9841
9850
|
readonly connection: NetworkInformation;
|
|
9842
9851
|
}
|
|
@@ -10467,7 +10476,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming {
|
|
|
10467
10476
|
readonly loadEventEnd: DOMHighResTimeStamp;
|
|
10468
10477
|
readonly loadEventStart: DOMHighResTimeStamp;
|
|
10469
10478
|
readonly redirectCount: number;
|
|
10470
|
-
readonly type:
|
|
10479
|
+
readonly type: NavigationTimingType;
|
|
10471
10480
|
readonly unloadEventEnd: DOMHighResTimeStamp;
|
|
10472
10481
|
readonly unloadEventStart: DOMHighResTimeStamp;
|
|
10473
10482
|
toJSON(): any;
|
|
@@ -13759,10 +13768,10 @@ interface SubtleCrypto {
|
|
|
13759
13768
|
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
13760
13769
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
13761
13770
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
13762
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
13763
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
13771
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
13772
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
13764
13773
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
13765
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
13774
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
13766
13775
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
13767
13776
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
13768
13777
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
@@ -16445,6 +16454,7 @@ declare var WheelEvent: {
|
|
|
16445
16454
|
};
|
|
16446
16455
|
|
|
16447
16456
|
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
|
|
16457
|
+
"DOMContentLoaded": Event;
|
|
16448
16458
|
"devicemotion": DeviceMotionEvent;
|
|
16449
16459
|
"deviceorientation": DeviceOrientationEvent;
|
|
16450
16460
|
"gamepadconnected": GamepadEvent;
|
|
@@ -17950,8 +17960,7 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
17950
17960
|
type COSEAlgorithmIdentifier = number;
|
|
17951
17961
|
type CSSNumberish = number;
|
|
17952
17962
|
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
|
|
17953
|
-
type ClipboardItemData = Promise<
|
|
17954
|
-
type ClipboardItemDataType = string | Blob;
|
|
17963
|
+
type ClipboardItemData = Promise<string | Blob>;
|
|
17955
17964
|
type ClipboardItems = ClipboardItem[];
|
|
17956
17965
|
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
|
17957
17966
|
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
|
@@ -18077,7 +18086,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
|
|
|
18077
18086
|
type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
|
|
18078
18087
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
18079
18088
|
type MediaStreamTrackState = "ended" | "live";
|
|
18080
|
-
type
|
|
18089
|
+
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
18081
18090
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
18082
18091
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
18083
18092
|
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
|
package/iterable.d.ts
CHANGED
|
@@ -216,10 +216,10 @@ interface StyleSheetList {
|
|
|
216
216
|
|
|
217
217
|
interface SubtleCrypto {
|
|
218
218
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
219
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
220
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
219
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
220
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
221
221
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
222
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
222
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
223
223
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
224
224
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
225
225
|
}
|