@types/web 0.0.55 → 0.0.58
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 +15 -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.58 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.58.
|
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. */
|
|
@@ -9768,7 +9769,7 @@ declare var NavigationPreloadManager: {
|
|
|
9768
9769
|
};
|
|
9769
9770
|
|
|
9770
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. */
|
|
9771
|
-
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 {
|
|
9772
9773
|
/** Available only in secure contexts. */
|
|
9773
9774
|
readonly clipboard: Clipboard;
|
|
9774
9775
|
/** Available only in secure contexts. */
|
|
@@ -9840,6 +9841,11 @@ interface NavigatorLanguage {
|
|
|
9840
9841
|
readonly languages: ReadonlyArray<string>;
|
|
9841
9842
|
}
|
|
9842
9843
|
|
|
9844
|
+
/** Available only in secure contexts. */
|
|
9845
|
+
interface NavigatorLocks {
|
|
9846
|
+
readonly locks: LockManager;
|
|
9847
|
+
}
|
|
9848
|
+
|
|
9843
9849
|
interface NavigatorNetworkInformation {
|
|
9844
9850
|
readonly connection: NetworkInformation;
|
|
9845
9851
|
}
|
|
@@ -10470,7 +10476,7 @@ interface PerformanceNavigationTiming extends PerformanceResourceTiming {
|
|
|
10470
10476
|
readonly loadEventEnd: DOMHighResTimeStamp;
|
|
10471
10477
|
readonly loadEventStart: DOMHighResTimeStamp;
|
|
10472
10478
|
readonly redirectCount: number;
|
|
10473
|
-
readonly type:
|
|
10479
|
+
readonly type: NavigationTimingType;
|
|
10474
10480
|
readonly unloadEventEnd: DOMHighResTimeStamp;
|
|
10475
10481
|
readonly unloadEventStart: DOMHighResTimeStamp;
|
|
10476
10482
|
toJSON(): any;
|
|
@@ -13369,6 +13375,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
13369
13375
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
13370
13376
|
readonly active: ServiceWorker | null;
|
|
13371
13377
|
readonly installing: ServiceWorker | null;
|
|
13378
|
+
readonly navigationPreload: NavigationPreloadManager;
|
|
13372
13379
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
13373
13380
|
readonly pushManager: PushManager;
|
|
13374
13381
|
readonly scope: string;
|
|
@@ -13762,10 +13769,10 @@ interface SubtleCrypto {
|
|
|
13762
13769
|
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
|
|
13763
13770
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
13764
13771
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
13765
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
13766
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
13772
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
13773
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
13767
13774
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
13768
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
13775
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
13769
13776
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
13770
13777
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
13771
13778
|
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>;
|
|
@@ -17954,8 +17961,7 @@ type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
|
17954
17961
|
type COSEAlgorithmIdentifier = number;
|
|
17955
17962
|
type CSSNumberish = number;
|
|
17956
17963
|
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
|
|
17957
|
-
type ClipboardItemData = Promise<
|
|
17958
|
-
type ClipboardItemDataType = string | Blob;
|
|
17964
|
+
type ClipboardItemData = Promise<string | Blob>;
|
|
17959
17965
|
type ClipboardItems = ClipboardItem[];
|
|
17960
17966
|
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
|
|
17961
17967
|
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
|
|
@@ -18081,7 +18087,7 @@ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
|
|
|
18081
18087
|
type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
|
|
18082
18088
|
type MediaSessionPlaybackState = "none" | "paused" | "playing";
|
|
18083
18089
|
type MediaStreamTrackState = "ended" | "live";
|
|
18084
|
-
type
|
|
18090
|
+
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
|
|
18085
18091
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
18086
18092
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
18087
18093
|
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
|
}
|