@types/web 0.0.157 → 0.0.158
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 +67 -4
- package/package.json +1 -1
- package/ts5.5/index.d.ts +67 -4
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.158 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.158.
|
package/index.d.ts
CHANGED
|
@@ -137,6 +137,9 @@ interface AuthenticationExtensionsClientInputs {
|
|
|
137
137
|
prf?: AuthenticationExtensionsPRFInputs;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
interface AuthenticationExtensionsClientInputsJSON {
|
|
141
|
+
}
|
|
142
|
+
|
|
140
143
|
interface AuthenticationExtensionsClientOutputs {
|
|
141
144
|
appid?: boolean;
|
|
142
145
|
credProps?: CredentialPropertiesOutput;
|
|
@@ -1296,12 +1299,31 @@ interface PublicKeyCredentialCreationOptions {
|
|
|
1296
1299
|
user: PublicKeyCredentialUserEntity;
|
|
1297
1300
|
}
|
|
1298
1301
|
|
|
1302
|
+
interface PublicKeyCredentialCreationOptionsJSON {
|
|
1303
|
+
attestation?: string;
|
|
1304
|
+
authenticatorSelection?: AuthenticatorSelectionCriteria;
|
|
1305
|
+
challenge: Base64URLString;
|
|
1306
|
+
excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
|
|
1307
|
+
extensions?: AuthenticationExtensionsClientInputsJSON;
|
|
1308
|
+
hints?: string[];
|
|
1309
|
+
pubKeyCredParams: PublicKeyCredentialParameters[];
|
|
1310
|
+
rp: PublicKeyCredentialRpEntity;
|
|
1311
|
+
timeout?: number;
|
|
1312
|
+
user: PublicKeyCredentialUserEntityJSON;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1299
1315
|
interface PublicKeyCredentialDescriptor {
|
|
1300
1316
|
id: BufferSource;
|
|
1301
1317
|
transports?: AuthenticatorTransport[];
|
|
1302
1318
|
type: PublicKeyCredentialType;
|
|
1303
1319
|
}
|
|
1304
1320
|
|
|
1321
|
+
interface PublicKeyCredentialDescriptorJSON {
|
|
1322
|
+
id: Base64URLString;
|
|
1323
|
+
transports?: string[];
|
|
1324
|
+
type: string;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1305
1327
|
interface PublicKeyCredentialEntity {
|
|
1306
1328
|
name: string;
|
|
1307
1329
|
}
|
|
@@ -1320,6 +1342,16 @@ interface PublicKeyCredentialRequestOptions {
|
|
|
1320
1342
|
userVerification?: UserVerificationRequirement;
|
|
1321
1343
|
}
|
|
1322
1344
|
|
|
1345
|
+
interface PublicKeyCredentialRequestOptionsJSON {
|
|
1346
|
+
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
|
|
1347
|
+
challenge: Base64URLString;
|
|
1348
|
+
extensions?: AuthenticationExtensionsClientInputsJSON;
|
|
1349
|
+
hints?: string[];
|
|
1350
|
+
rpId?: string;
|
|
1351
|
+
timeout?: number;
|
|
1352
|
+
userVerification?: string;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1323
1355
|
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
|
|
1324
1356
|
id?: string;
|
|
1325
1357
|
}
|
|
@@ -1329,6 +1361,12 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
|
|
|
1329
1361
|
id: BufferSource;
|
|
1330
1362
|
}
|
|
1331
1363
|
|
|
1364
|
+
interface PublicKeyCredentialUserEntityJSON {
|
|
1365
|
+
displayName: string;
|
|
1366
|
+
id: Base64URLString;
|
|
1367
|
+
name: string;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1332
1370
|
interface PushSubscriptionJSON {
|
|
1333
1371
|
endpoint?: string;
|
|
1334
1372
|
expirationTime?: EpochTimeStamp | null;
|
|
@@ -3496,6 +3534,7 @@ declare var CSSKeyframeRule: {
|
|
|
3496
3534
|
interface CSSKeyframesRule extends CSSRule {
|
|
3497
3535
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
|
|
3498
3536
|
readonly cssRules: CSSRuleList;
|
|
3537
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */
|
|
3499
3538
|
readonly length: number;
|
|
3500
3539
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
|
|
3501
3540
|
name: string;
|
|
@@ -11110,11 +11149,23 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11110
11149
|
readonly validationMessage: string;
|
|
11111
11150
|
/** Returns a ValidityState object that represents the validity states of an element. */
|
|
11112
11151
|
readonly validity: ValidityState;
|
|
11113
|
-
/**
|
|
11152
|
+
/**
|
|
11153
|
+
* Returns the value of the data at the cursor's current position.
|
|
11154
|
+
*
|
|
11155
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
|
|
11156
|
+
*/
|
|
11114
11157
|
value: string;
|
|
11115
|
-
/**
|
|
11158
|
+
/**
|
|
11159
|
+
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
|
|
11160
|
+
*
|
|
11161
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
|
|
11162
|
+
*/
|
|
11116
11163
|
valueAsDate: Date | null;
|
|
11117
|
-
/**
|
|
11164
|
+
/**
|
|
11165
|
+
* Returns the input field value as a number.
|
|
11166
|
+
*
|
|
11167
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
|
|
11168
|
+
*/
|
|
11118
11169
|
valueAsNumber: number;
|
|
11119
11170
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
|
|
11120
11171
|
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
@@ -14138,7 +14189,11 @@ declare var ImageBitmap: {
|
|
|
14138
14189
|
|
|
14139
14190
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
|
|
14140
14191
|
interface ImageBitmapRenderingContext {
|
|
14141
|
-
/**
|
|
14192
|
+
/**
|
|
14193
|
+
* Returns the canvas element that the context is bound to.
|
|
14194
|
+
*
|
|
14195
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
|
|
14196
|
+
*/
|
|
14142
14197
|
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
14143
14198
|
/**
|
|
14144
14199
|
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
|
|
@@ -17725,6 +17780,8 @@ interface PublicKeyCredential extends Credential {
|
|
|
17725
17780
|
readonly response: AuthenticatorResponse;
|
|
17726
17781
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
|
|
17727
17782
|
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
|
|
17783
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
|
|
17784
|
+
toJSON(): PublicKeyCredentialJSON;
|
|
17728
17785
|
}
|
|
17729
17786
|
|
|
17730
17787
|
declare var PublicKeyCredential: {
|
|
@@ -17734,6 +17791,10 @@ declare var PublicKeyCredential: {
|
|
|
17734
17791
|
isConditionalMediationAvailable(): Promise<boolean>;
|
|
17735
17792
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
|
|
17736
17793
|
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
|
|
17794
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */
|
|
17795
|
+
parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
|
|
17796
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */
|
|
17797
|
+
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
|
|
17737
17798
|
};
|
|
17738
17799
|
|
|
17739
17800
|
/**
|
|
@@ -28141,6 +28202,7 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
|
|
28141
28202
|
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
|
|
28142
28203
|
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
|
|
28143
28204
|
type AutoFillSection = `section-${string}`;
|
|
28205
|
+
type Base64URLString = string;
|
|
28144
28206
|
type BigInteger = Uint8Array;
|
|
28145
28207
|
type BlobPart = BufferSource | Blob | string;
|
|
28146
28208
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
@@ -28193,6 +28255,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
28193
28255
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
|
28194
28256
|
type OptionalPrefixToken<T extends string> = `${T} ` | "";
|
|
28195
28257
|
type PerformanceEntryList = PerformanceEntry[];
|
|
28258
|
+
type PublicKeyCredentialJSON = any;
|
|
28196
28259
|
type RTCRtpTransform = RTCRtpScriptTransform;
|
|
28197
28260
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
28198
28261
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
package/package.json
CHANGED
package/ts5.5/index.d.ts
CHANGED
|
@@ -137,6 +137,9 @@ interface AuthenticationExtensionsClientInputs {
|
|
|
137
137
|
prf?: AuthenticationExtensionsPRFInputs;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
interface AuthenticationExtensionsClientInputsJSON {
|
|
141
|
+
}
|
|
142
|
+
|
|
140
143
|
interface AuthenticationExtensionsClientOutputs {
|
|
141
144
|
appid?: boolean;
|
|
142
145
|
credProps?: CredentialPropertiesOutput;
|
|
@@ -1296,12 +1299,31 @@ interface PublicKeyCredentialCreationOptions {
|
|
|
1296
1299
|
user: PublicKeyCredentialUserEntity;
|
|
1297
1300
|
}
|
|
1298
1301
|
|
|
1302
|
+
interface PublicKeyCredentialCreationOptionsJSON {
|
|
1303
|
+
attestation?: string;
|
|
1304
|
+
authenticatorSelection?: AuthenticatorSelectionCriteria;
|
|
1305
|
+
challenge: Base64URLString;
|
|
1306
|
+
excludeCredentials?: PublicKeyCredentialDescriptorJSON[];
|
|
1307
|
+
extensions?: AuthenticationExtensionsClientInputsJSON;
|
|
1308
|
+
hints?: string[];
|
|
1309
|
+
pubKeyCredParams: PublicKeyCredentialParameters[];
|
|
1310
|
+
rp: PublicKeyCredentialRpEntity;
|
|
1311
|
+
timeout?: number;
|
|
1312
|
+
user: PublicKeyCredentialUserEntityJSON;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1299
1315
|
interface PublicKeyCredentialDescriptor {
|
|
1300
1316
|
id: BufferSource;
|
|
1301
1317
|
transports?: AuthenticatorTransport[];
|
|
1302
1318
|
type: PublicKeyCredentialType;
|
|
1303
1319
|
}
|
|
1304
1320
|
|
|
1321
|
+
interface PublicKeyCredentialDescriptorJSON {
|
|
1322
|
+
id: Base64URLString;
|
|
1323
|
+
transports?: string[];
|
|
1324
|
+
type: string;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1305
1327
|
interface PublicKeyCredentialEntity {
|
|
1306
1328
|
name: string;
|
|
1307
1329
|
}
|
|
@@ -1320,6 +1342,16 @@ interface PublicKeyCredentialRequestOptions {
|
|
|
1320
1342
|
userVerification?: UserVerificationRequirement;
|
|
1321
1343
|
}
|
|
1322
1344
|
|
|
1345
|
+
interface PublicKeyCredentialRequestOptionsJSON {
|
|
1346
|
+
allowCredentials?: PublicKeyCredentialDescriptorJSON[];
|
|
1347
|
+
challenge: Base64URLString;
|
|
1348
|
+
extensions?: AuthenticationExtensionsClientInputsJSON;
|
|
1349
|
+
hints?: string[];
|
|
1350
|
+
rpId?: string;
|
|
1351
|
+
timeout?: number;
|
|
1352
|
+
userVerification?: string;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1323
1355
|
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
|
|
1324
1356
|
id?: string;
|
|
1325
1357
|
}
|
|
@@ -1329,6 +1361,12 @@ interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
|
|
|
1329
1361
|
id: BufferSource;
|
|
1330
1362
|
}
|
|
1331
1363
|
|
|
1364
|
+
interface PublicKeyCredentialUserEntityJSON {
|
|
1365
|
+
displayName: string;
|
|
1366
|
+
id: Base64URLString;
|
|
1367
|
+
name: string;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1332
1370
|
interface PushSubscriptionJSON {
|
|
1333
1371
|
endpoint?: string;
|
|
1334
1372
|
expirationTime?: EpochTimeStamp | null;
|
|
@@ -3496,6 +3534,7 @@ declare var CSSKeyframeRule: {
|
|
|
3496
3534
|
interface CSSKeyframesRule extends CSSRule {
|
|
3497
3535
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
|
|
3498
3536
|
readonly cssRules: CSSRuleList;
|
|
3537
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/length) */
|
|
3499
3538
|
readonly length: number;
|
|
3500
3539
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
|
|
3501
3540
|
name: string;
|
|
@@ -11110,11 +11149,23 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11110
11149
|
readonly validationMessage: string;
|
|
11111
11150
|
/** Returns a ValidityState object that represents the validity states of an element. */
|
|
11112
11151
|
readonly validity: ValidityState;
|
|
11113
|
-
/**
|
|
11152
|
+
/**
|
|
11153
|
+
* Returns the value of the data at the cursor's current position.
|
|
11154
|
+
*
|
|
11155
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/value)
|
|
11156
|
+
*/
|
|
11114
11157
|
value: string;
|
|
11115
|
-
/**
|
|
11158
|
+
/**
|
|
11159
|
+
* Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based.
|
|
11160
|
+
*
|
|
11161
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsDate)
|
|
11162
|
+
*/
|
|
11116
11163
|
valueAsDate: Date | null;
|
|
11117
|
-
/**
|
|
11164
|
+
/**
|
|
11165
|
+
* Returns the input field value as a number.
|
|
11166
|
+
*
|
|
11167
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/valueAsNumber)
|
|
11168
|
+
*/
|
|
11118
11169
|
valueAsNumber: number;
|
|
11119
11170
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
|
|
11120
11171
|
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
@@ -14138,7 +14189,11 @@ declare var ImageBitmap: {
|
|
|
14138
14189
|
|
|
14139
14190
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
|
|
14140
14191
|
interface ImageBitmapRenderingContext {
|
|
14141
|
-
/**
|
|
14192
|
+
/**
|
|
14193
|
+
* Returns the canvas element that the context is bound to.
|
|
14194
|
+
*
|
|
14195
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/canvas)
|
|
14196
|
+
*/
|
|
14142
14197
|
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
|
|
14143
14198
|
/**
|
|
14144
14199
|
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
|
|
@@ -17725,6 +17780,8 @@ interface PublicKeyCredential extends Credential {
|
|
|
17725
17780
|
readonly response: AuthenticatorResponse;
|
|
17726
17781
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
|
|
17727
17782
|
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
|
|
17783
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/toJSON) */
|
|
17784
|
+
toJSON(): PublicKeyCredentialJSON;
|
|
17728
17785
|
}
|
|
17729
17786
|
|
|
17730
17787
|
declare var PublicKeyCredential: {
|
|
@@ -17734,6 +17791,10 @@ declare var PublicKeyCredential: {
|
|
|
17734
17791
|
isConditionalMediationAvailable(): Promise<boolean>;
|
|
17735
17792
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
|
|
17736
17793
|
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
|
|
17794
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseCreationOptionsFromJSON_static) */
|
|
17795
|
+
parseCreationOptionsFromJSON(options: PublicKeyCredentialCreationOptionsJSON): PublicKeyCredentialCreationOptions;
|
|
17796
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/parseRequestOptionsFromJSON_static) */
|
|
17797
|
+
parseRequestOptionsFromJSON(options: PublicKeyCredentialRequestOptionsJSON): PublicKeyCredentialRequestOptions;
|
|
17737
17798
|
};
|
|
17738
17799
|
|
|
17739
17800
|
/**
|
|
@@ -28141,6 +28202,7 @@ type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
|
|
|
28141
28202
|
type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
|
|
28142
28203
|
type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
|
|
28143
28204
|
type AutoFillSection = `section-${string}`;
|
|
28205
|
+
type Base64URLString = string;
|
|
28144
28206
|
type BigInteger = Uint8Array;
|
|
28145
28207
|
type BlobPart = BufferSource | Blob | string;
|
|
28146
28208
|
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
@@ -28193,6 +28255,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
28193
28255
|
type OptionalPostfixToken<T extends string> = ` ${T}` | "";
|
|
28194
28256
|
type OptionalPrefixToken<T extends string> = `${T} ` | "";
|
|
28195
28257
|
type PerformanceEntryList = PerformanceEntry[];
|
|
28258
|
+
type PublicKeyCredentialJSON = any;
|
|
28196
28259
|
type RTCRtpTransform = RTCRtpScriptTransform;
|
|
28197
28260
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
28198
28261
|
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|