@types/web 0.0.314 → 0.0.315
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 +5 -8
- package/package.json +1 -1
- package/ts5.5/index.d.ts +4 -8
- package/ts5.5/iterable.d.ts +1 -0
- package/ts5.6/index.d.ts +4 -8
- package/ts5.6/iterable.d.ts +1 -0
- package/ts5.9/index.d.ts +4 -8
- package/ts5.9/iterable.d.ts +1 -0
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.315 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.315.
|
package/index.d.ts
CHANGED
|
@@ -6248,6 +6248,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6248
6248
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/anchor-name)
|
|
6249
6249
|
*/
|
|
6250
6250
|
anchorName: string;
|
|
6251
|
+
/** The anchor-scope CSS property can be used to limit the scope in which a positioned element can be associated with anchor elements to a particular subtree. */
|
|
6251
6252
|
anchorScope: string;
|
|
6252
6253
|
/**
|
|
6253
6254
|
* The **`animation`** shorthand CSS property applies an animation between styles. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, and animation-timeline.
|
|
@@ -19854,7 +19855,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19854
19855
|
*
|
|
19855
19856
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)
|
|
19856
19857
|
*/
|
|
19857
|
-
selectionDirection:
|
|
19858
|
+
selectionDirection: SelectionDirection;
|
|
19858
19859
|
/**
|
|
19859
19860
|
* The **`selectionEnd`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a <textarea> element. It is a number representing the last index of the selected text. It can be used to both retrieve and set the index of the end of a <textarea>s selected text.
|
|
19860
19861
|
*
|
|
@@ -19945,7 +19946,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19945
19946
|
*
|
|
19946
19947
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
|
|
19947
19948
|
*/
|
|
19948
|
-
setSelectionRange(start: number | null, end: number | null, direction?:
|
|
19949
|
+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
|
|
19949
19950
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
19950
19951
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
19951
19952
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34370,12 +34371,6 @@ declare var StorageManager: {
|
|
|
34370
34371
|
new(): StorageManager;
|
|
34371
34372
|
};
|
|
34372
34373
|
|
|
34373
|
-
/** @deprecated */
|
|
34374
|
-
interface StyleMedia {
|
|
34375
|
-
type: string;
|
|
34376
|
-
matchMedium(mediaquery: string): boolean;
|
|
34377
|
-
}
|
|
34378
|
-
|
|
34379
34374
|
/**
|
|
34380
34375
|
* The **`StylePropertyMap`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
|
|
34381
34376
|
*
|
|
@@ -34603,6 +34598,7 @@ interface SubtleCrypto {
|
|
|
34603
34598
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
34604
34599
|
*/
|
|
34605
34600
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
34601
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
34606
34602
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
34607
34603
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
34608
34604
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
@@ -43084,6 +43080,7 @@ interface SubtleCrypto {
|
|
|
43084
43080
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
43085
43081
|
*/
|
|
43086
43082
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
43083
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
43087
43084
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
43088
43085
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
43089
43086
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -6238,6 +6238,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6238
6238
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/anchor-name)
|
|
6239
6239
|
*/
|
|
6240
6240
|
anchorName: string;
|
|
6241
|
+
/** The anchor-scope CSS property can be used to limit the scope in which a positioned element can be associated with anchor elements to a particular subtree. */
|
|
6241
6242
|
anchorScope: string;
|
|
6242
6243
|
/**
|
|
6243
6244
|
* The **`animation`** shorthand CSS property applies an animation between styles. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, and animation-timeline.
|
|
@@ -19830,7 +19831,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19830
19831
|
*
|
|
19831
19832
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)
|
|
19832
19833
|
*/
|
|
19833
|
-
selectionDirection:
|
|
19834
|
+
selectionDirection: SelectionDirection;
|
|
19834
19835
|
/**
|
|
19835
19836
|
* The **`selectionEnd`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a <textarea> element. It is a number representing the last index of the selected text. It can be used to both retrieve and set the index of the end of a <textarea>s selected text.
|
|
19836
19837
|
*
|
|
@@ -19921,7 +19922,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19921
19922
|
*
|
|
19922
19923
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
|
|
19923
19924
|
*/
|
|
19924
|
-
setSelectionRange(start: number | null, end: number | null, direction?:
|
|
19925
|
+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
|
|
19925
19926
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
19926
19927
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
19927
19928
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34345,12 +34346,6 @@ declare var StorageManager: {
|
|
|
34345
34346
|
new(): StorageManager;
|
|
34346
34347
|
};
|
|
34347
34348
|
|
|
34348
|
-
/** @deprecated */
|
|
34349
|
-
interface StyleMedia {
|
|
34350
|
-
type: string;
|
|
34351
|
-
matchMedium(mediaquery: string): boolean;
|
|
34352
|
-
}
|
|
34353
|
-
|
|
34354
34349
|
/**
|
|
34355
34350
|
* The **`StylePropertyMap`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
|
|
34356
34351
|
*
|
|
@@ -34577,6 +34572,7 @@ interface SubtleCrypto {
|
|
|
34577
34572
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
34578
34573
|
*/
|
|
34579
34574
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
34575
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
34580
34576
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
34581
34577
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
34582
34578
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
package/ts5.5/iterable.d.ts
CHANGED
|
@@ -347,6 +347,7 @@ interface SubtleCrypto {
|
|
|
347
347
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
348
348
|
*/
|
|
349
349
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
350
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
350
351
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
351
352
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
352
353
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
package/ts5.6/index.d.ts
CHANGED
|
@@ -6245,6 +6245,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6245
6245
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/anchor-name)
|
|
6246
6246
|
*/
|
|
6247
6247
|
anchorName: string;
|
|
6248
|
+
/** The anchor-scope CSS property can be used to limit the scope in which a positioned element can be associated with anchor elements to a particular subtree. */
|
|
6248
6249
|
anchorScope: string;
|
|
6249
6250
|
/**
|
|
6250
6251
|
* The **`animation`** shorthand CSS property applies an animation between styles. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, and animation-timeline.
|
|
@@ -19851,7 +19852,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19851
19852
|
*
|
|
19852
19853
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)
|
|
19853
19854
|
*/
|
|
19854
|
-
selectionDirection:
|
|
19855
|
+
selectionDirection: SelectionDirection;
|
|
19855
19856
|
/**
|
|
19856
19857
|
* The **`selectionEnd`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a <textarea> element. It is a number representing the last index of the selected text. It can be used to both retrieve and set the index of the end of a <textarea>s selected text.
|
|
19857
19858
|
*
|
|
@@ -19942,7 +19943,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19942
19943
|
*
|
|
19943
19944
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
|
|
19944
19945
|
*/
|
|
19945
|
-
setSelectionRange(start: number | null, end: number | null, direction?:
|
|
19946
|
+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
|
|
19946
19947
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
19947
19948
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
19948
19949
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34367,12 +34368,6 @@ declare var StorageManager: {
|
|
|
34367
34368
|
new(): StorageManager;
|
|
34368
34369
|
};
|
|
34369
34370
|
|
|
34370
|
-
/** @deprecated */
|
|
34371
|
-
interface StyleMedia {
|
|
34372
|
-
type: string;
|
|
34373
|
-
matchMedium(mediaquery: string): boolean;
|
|
34374
|
-
}
|
|
34375
|
-
|
|
34376
34371
|
/**
|
|
34377
34372
|
* The **`StylePropertyMap`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
|
|
34378
34373
|
*
|
|
@@ -34600,6 +34595,7 @@ interface SubtleCrypto {
|
|
|
34600
34595
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
34601
34596
|
*/
|
|
34602
34597
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
34598
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
34603
34599
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
34604
34600
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
34605
34601
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
package/ts5.6/iterable.d.ts
CHANGED
|
@@ -363,6 +363,7 @@ interface SubtleCrypto {
|
|
|
363
363
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
364
364
|
*/
|
|
365
365
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
366
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
366
367
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
367
368
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
368
369
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
package/ts5.9/index.d.ts
CHANGED
|
@@ -6245,6 +6245,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6245
6245
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/anchor-name)
|
|
6246
6246
|
*/
|
|
6247
6247
|
anchorName: string;
|
|
6248
|
+
/** The anchor-scope CSS property can be used to limit the scope in which a positioned element can be associated with anchor elements to a particular subtree. */
|
|
6248
6249
|
anchorScope: string;
|
|
6249
6250
|
/**
|
|
6250
6251
|
* The **`animation`** shorthand CSS property applies an animation between styles. It is a shorthand for animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state, and animation-timeline.
|
|
@@ -19851,7 +19852,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19851
19852
|
*
|
|
19852
19853
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection)
|
|
19853
19854
|
*/
|
|
19854
|
-
selectionDirection:
|
|
19855
|
+
selectionDirection: SelectionDirection;
|
|
19855
19856
|
/**
|
|
19856
19857
|
* The **`selectionEnd`** property of the HTMLTextAreaElement interface specifies the end position of the current text selection in a <textarea> element. It is a number representing the last index of the selected text. It can be used to both retrieve and set the index of the end of a <textarea>s selected text.
|
|
19857
19858
|
*
|
|
@@ -19942,7 +19943,7 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
19942
19943
|
*
|
|
19943
19944
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
|
|
19944
19945
|
*/
|
|
19945
|
-
setSelectionRange(start: number | null, end: number | null, direction?:
|
|
19946
|
+
setSelectionRange(start: number | null, end: number | null, direction?: SelectionDirection): void;
|
|
19946
19947
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
19947
19948
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
19948
19949
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -34367,12 +34368,6 @@ declare var StorageManager: {
|
|
|
34367
34368
|
new(): StorageManager;
|
|
34368
34369
|
};
|
|
34369
34370
|
|
|
34370
|
-
/** @deprecated */
|
|
34371
|
-
interface StyleMedia {
|
|
34372
|
-
type: string;
|
|
34373
|
-
matchMedium(mediaquery: string): boolean;
|
|
34374
|
-
}
|
|
34375
|
-
|
|
34376
34371
|
/**
|
|
34377
34372
|
* The **`StylePropertyMap`** interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
|
|
34378
34373
|
*
|
|
@@ -34600,6 +34595,7 @@ interface SubtleCrypto {
|
|
|
34600
34595
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
34601
34596
|
*/
|
|
34602
34597
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
34598
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
34603
34599
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
34604
34600
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
34605
34601
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
package/ts5.9/iterable.d.ts
CHANGED
|
@@ -363,6 +363,7 @@ interface SubtleCrypto {
|
|
|
363
363
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
364
364
|
*/
|
|
365
365
|
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
366
|
+
generateKey(algorithm: "X25519" | { name: "X25519" }, extractable: boolean, keyUsages: ReadonlyArray<"deriveBits" | "deriveKey">): Promise<CryptoKeyPair>;
|
|
366
367
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
367
368
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
368
369
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|