@types/web 0.0.163 → 0.0.165
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 +486 -47
- package/package.json +1 -1
- package/ts5.5/index.d.ts +486 -47
package/ts5.5/index.d.ts
CHANGED
|
@@ -104,6 +104,59 @@ interface AudioContextOptions {
|
|
|
104
104
|
sampleRate?: number;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
interface AudioDataCopyToOptions {
|
|
108
|
+
format?: AudioSampleFormat;
|
|
109
|
+
frameCount?: number;
|
|
110
|
+
frameOffset?: number;
|
|
111
|
+
planeIndex: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface AudioDataInit {
|
|
115
|
+
data: BufferSource;
|
|
116
|
+
format: AudioSampleFormat;
|
|
117
|
+
numberOfChannels: number;
|
|
118
|
+
numberOfFrames: number;
|
|
119
|
+
sampleRate: number;
|
|
120
|
+
timestamp: number;
|
|
121
|
+
transfer?: ArrayBuffer[];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
interface AudioDecoderConfig {
|
|
125
|
+
codec: string;
|
|
126
|
+
description?: BufferSource;
|
|
127
|
+
numberOfChannels: number;
|
|
128
|
+
sampleRate: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface AudioDecoderInit {
|
|
132
|
+
error: WebCodecsErrorCallback;
|
|
133
|
+
output: AudioDataOutputCallback;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface AudioDecoderSupport {
|
|
137
|
+
config?: AudioDecoderConfig;
|
|
138
|
+
supported?: boolean;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface AudioEncoderConfig {
|
|
142
|
+
bitrate?: number;
|
|
143
|
+
bitrateMode?: BitrateMode;
|
|
144
|
+
codec: string;
|
|
145
|
+
numberOfChannels: number;
|
|
146
|
+
opus?: OpusEncoderConfig;
|
|
147
|
+
sampleRate: number;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface AudioEncoderInit {
|
|
151
|
+
error: WebCodecsErrorCallback;
|
|
152
|
+
output: EncodedAudioChunkOutputCallback;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
interface AudioEncoderSupport {
|
|
156
|
+
config?: AudioEncoderConfig;
|
|
157
|
+
supported?: boolean;
|
|
158
|
+
}
|
|
159
|
+
|
|
107
160
|
interface AudioNodeOptions {
|
|
108
161
|
channelCount?: number;
|
|
109
162
|
channelCountMode?: ChannelCountMode;
|
|
@@ -489,6 +542,18 @@ interface ElementDefinitionOptions {
|
|
|
489
542
|
extends?: string;
|
|
490
543
|
}
|
|
491
544
|
|
|
545
|
+
interface EncodedAudioChunkInit {
|
|
546
|
+
data: AllowSharedBufferSource;
|
|
547
|
+
duration?: number;
|
|
548
|
+
timestamp: number;
|
|
549
|
+
transfer?: ArrayBuffer[];
|
|
550
|
+
type: EncodedAudioChunkType;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
interface EncodedAudioChunkMetadata {
|
|
554
|
+
decoderConfig?: AudioDecoderConfig;
|
|
555
|
+
}
|
|
556
|
+
|
|
492
557
|
interface EncodedVideoChunkInit {
|
|
493
558
|
data: AllowSharedBufferSource;
|
|
494
559
|
duration?: number;
|
|
@@ -1081,6 +1146,15 @@ interface OptionalEffectTiming {
|
|
|
1081
1146
|
playbackRate?: number;
|
|
1082
1147
|
}
|
|
1083
1148
|
|
|
1149
|
+
interface OpusEncoderConfig {
|
|
1150
|
+
complexity?: number;
|
|
1151
|
+
format?: OpusBitstreamFormat;
|
|
1152
|
+
frameDuration?: number;
|
|
1153
|
+
packetlossperc?: number;
|
|
1154
|
+
usedtx?: boolean;
|
|
1155
|
+
useinbandfec?: boolean;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1084
1158
|
interface OscillatorOptions extends AudioNodeOptions {
|
|
1085
1159
|
detune?: number;
|
|
1086
1160
|
frequency?: number;
|
|
@@ -2089,6 +2163,7 @@ interface VideoConfiguration {
|
|
|
2089
2163
|
colorGamut?: ColorGamut;
|
|
2090
2164
|
contentType: string;
|
|
2091
2165
|
framerate: number;
|
|
2166
|
+
hasAlphaChannel?: boolean;
|
|
2092
2167
|
hdrMetadataType?: HdrMetadataType;
|
|
2093
2168
|
height: number;
|
|
2094
2169
|
scalabilityMode?: string;
|
|
@@ -2124,6 +2199,7 @@ interface VideoEncoderConfig {
|
|
|
2124
2199
|
bitrate?: number;
|
|
2125
2200
|
bitrateMode?: VideoEncoderBitrateMode;
|
|
2126
2201
|
codec: string;
|
|
2202
|
+
contentHint?: string;
|
|
2127
2203
|
displayHeight?: number;
|
|
2128
2204
|
displayWidth?: number;
|
|
2129
2205
|
framerate?: number;
|
|
@@ -2135,9 +2211,14 @@ interface VideoEncoderConfig {
|
|
|
2135
2211
|
}
|
|
2136
2212
|
|
|
2137
2213
|
interface VideoEncoderEncodeOptions {
|
|
2214
|
+
avc?: VideoEncoderEncodeOptionsForAvc;
|
|
2138
2215
|
keyFrame?: boolean;
|
|
2139
2216
|
}
|
|
2140
2217
|
|
|
2218
|
+
interface VideoEncoderEncodeOptionsForAvc {
|
|
2219
|
+
quantizer?: number | null;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2141
2222
|
interface VideoEncoderInit {
|
|
2142
2223
|
error: WebCodecsErrorCallback;
|
|
2143
2224
|
output: EncodedVideoChunkOutputCallback;
|
|
@@ -2175,6 +2256,8 @@ interface VideoFrameCallbackMetadata {
|
|
|
2175
2256
|
}
|
|
2176
2257
|
|
|
2177
2258
|
interface VideoFrameCopyToOptions {
|
|
2259
|
+
colorSpace?: PredefinedColorSpace;
|
|
2260
|
+
format?: VideoPixelFormat;
|
|
2178
2261
|
layout?: PlaneLayout[];
|
|
2179
2262
|
rect?: DOMRectInit;
|
|
2180
2263
|
}
|
|
@@ -2795,6 +2878,74 @@ declare var AudioContext: {
|
|
|
2795
2878
|
new(contextOptions?: AudioContextOptions): AudioContext;
|
|
2796
2879
|
};
|
|
2797
2880
|
|
|
2881
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData) */
|
|
2882
|
+
interface AudioData {
|
|
2883
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/duration) */
|
|
2884
|
+
readonly duration: number;
|
|
2885
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/format) */
|
|
2886
|
+
readonly format: AudioSampleFormat | null;
|
|
2887
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfChannels) */
|
|
2888
|
+
readonly numberOfChannels: number;
|
|
2889
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/numberOfFrames) */
|
|
2890
|
+
readonly numberOfFrames: number;
|
|
2891
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/sampleRate) */
|
|
2892
|
+
readonly sampleRate: number;
|
|
2893
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/timestamp) */
|
|
2894
|
+
readonly timestamp: number;
|
|
2895
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/allocationSize) */
|
|
2896
|
+
allocationSize(options: AudioDataCopyToOptions): number;
|
|
2897
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/clone) */
|
|
2898
|
+
clone(): AudioData;
|
|
2899
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/close) */
|
|
2900
|
+
close(): void;
|
|
2901
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioData/copyTo) */
|
|
2902
|
+
copyTo(destination: AllowSharedBufferSource, options: AudioDataCopyToOptions): void;
|
|
2903
|
+
}
|
|
2904
|
+
|
|
2905
|
+
declare var AudioData: {
|
|
2906
|
+
prototype: AudioData;
|
|
2907
|
+
new(init: AudioDataInit): AudioData;
|
|
2908
|
+
};
|
|
2909
|
+
|
|
2910
|
+
interface AudioDecoderEventMap {
|
|
2911
|
+
"dequeue": Event;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
/**
|
|
2915
|
+
* Available only in secure contexts.
|
|
2916
|
+
*
|
|
2917
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder)
|
|
2918
|
+
*/
|
|
2919
|
+
interface AudioDecoder extends EventTarget {
|
|
2920
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decodeQueueSize) */
|
|
2921
|
+
readonly decodeQueueSize: number;
|
|
2922
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/dequeue_event) */
|
|
2923
|
+
ondequeue: ((this: AudioDecoder, ev: Event) => any) | null;
|
|
2924
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/state) */
|
|
2925
|
+
readonly state: CodecState;
|
|
2926
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/close) */
|
|
2927
|
+
close(): void;
|
|
2928
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/configure) */
|
|
2929
|
+
configure(config: AudioDecoderConfig): void;
|
|
2930
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/decode) */
|
|
2931
|
+
decode(chunk: EncodedAudioChunk): void;
|
|
2932
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/flush) */
|
|
2933
|
+
flush(): Promise<void>;
|
|
2934
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/reset) */
|
|
2935
|
+
reset(): void;
|
|
2936
|
+
addEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2937
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2938
|
+
removeEventListener<K extends keyof AudioDecoderEventMap>(type: K, listener: (this: AudioDecoder, ev: AudioDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2939
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
declare var AudioDecoder: {
|
|
2943
|
+
prototype: AudioDecoder;
|
|
2944
|
+
new(init: AudioDecoderInit): AudioDecoder;
|
|
2945
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDecoder/isConfigSupported_static) */
|
|
2946
|
+
isConfigSupported(config: AudioDecoderConfig): Promise<AudioDecoderSupport>;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2798
2949
|
/**
|
|
2799
2950
|
* AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised.
|
|
2800
2951
|
*
|
|
@@ -2810,6 +2961,45 @@ declare var AudioDestinationNode: {
|
|
|
2810
2961
|
new(): AudioDestinationNode;
|
|
2811
2962
|
};
|
|
2812
2963
|
|
|
2964
|
+
interface AudioEncoderEventMap {
|
|
2965
|
+
"dequeue": Event;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
/**
|
|
2969
|
+
* Available only in secure contexts.
|
|
2970
|
+
*
|
|
2971
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder)
|
|
2972
|
+
*/
|
|
2973
|
+
interface AudioEncoder extends EventTarget {
|
|
2974
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encodeQueueSize) */
|
|
2975
|
+
readonly encodeQueueSize: number;
|
|
2976
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/dequeue_event) */
|
|
2977
|
+
ondequeue: ((this: AudioEncoder, ev: Event) => any) | null;
|
|
2978
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/state) */
|
|
2979
|
+
readonly state: CodecState;
|
|
2980
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/close) */
|
|
2981
|
+
close(): void;
|
|
2982
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/configure) */
|
|
2983
|
+
configure(config: AudioEncoderConfig): void;
|
|
2984
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/encode) */
|
|
2985
|
+
encode(data: AudioData): void;
|
|
2986
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/flush) */
|
|
2987
|
+
flush(): Promise<void>;
|
|
2988
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/reset) */
|
|
2989
|
+
reset(): void;
|
|
2990
|
+
addEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2991
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2992
|
+
removeEventListener<K extends keyof AudioEncoderEventMap>(type: K, listener: (this: AudioEncoder, ev: AudioEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2993
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2996
|
+
declare var AudioEncoder: {
|
|
2997
|
+
prototype: AudioEncoder;
|
|
2998
|
+
new(init: AudioEncoderInit): AudioEncoder;
|
|
2999
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioEncoder/isConfigSupported_static) */
|
|
3000
|
+
isConfigSupported(config: AudioEncoderConfig): Promise<AudioEncoderSupport>;
|
|
3001
|
+
};
|
|
3002
|
+
|
|
2813
3003
|
/**
|
|
2814
3004
|
* The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.
|
|
2815
3005
|
*
|
|
@@ -7155,6 +7345,8 @@ interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEve
|
|
|
7155
7345
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)
|
|
7156
7346
|
*/
|
|
7157
7347
|
readonly forms: HTMLCollectionOf<HTMLFormElement>;
|
|
7348
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fragmentDirective) */
|
|
7349
|
+
readonly fragmentDirective: FragmentDirective;
|
|
7158
7350
|
/**
|
|
7159
7351
|
* @deprecated
|
|
7160
7352
|
*
|
|
@@ -8219,6 +8411,25 @@ declare var ElementInternals: {
|
|
|
8219
8411
|
new(): ElementInternals;
|
|
8220
8412
|
};
|
|
8221
8413
|
|
|
8414
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk) */
|
|
8415
|
+
interface EncodedAudioChunk {
|
|
8416
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/byteLength) */
|
|
8417
|
+
readonly byteLength: number;
|
|
8418
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/duration) */
|
|
8419
|
+
readonly duration: number | null;
|
|
8420
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/timestamp) */
|
|
8421
|
+
readonly timestamp: number;
|
|
8422
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/type) */
|
|
8423
|
+
readonly type: EncodedAudioChunkType;
|
|
8424
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedAudioChunk/copyTo) */
|
|
8425
|
+
copyTo(destination: AllowSharedBufferSource): void;
|
|
8426
|
+
}
|
|
8427
|
+
|
|
8428
|
+
declare var EncodedAudioChunk: {
|
|
8429
|
+
prototype: EncodedAudioChunk;
|
|
8430
|
+
new(init: EncodedAudioChunkInit): EncodedAudioChunk;
|
|
8431
|
+
};
|
|
8432
|
+
|
|
8222
8433
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
|
|
8223
8434
|
interface EncodedVideoChunk {
|
|
8224
8435
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
|
|
@@ -8912,6 +9123,15 @@ declare var FormDataEvent: {
|
|
|
8912
9123
|
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
|
|
8913
9124
|
};
|
|
8914
9125
|
|
|
9126
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FragmentDirective) */
|
|
9127
|
+
interface FragmentDirective {
|
|
9128
|
+
}
|
|
9129
|
+
|
|
9130
|
+
declare var FragmentDirective: {
|
|
9131
|
+
prototype: FragmentDirective;
|
|
9132
|
+
new(): FragmentDirective;
|
|
9133
|
+
};
|
|
9134
|
+
|
|
8915
9135
|
/**
|
|
8916
9136
|
* A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
|
|
8917
9137
|
*
|
|
@@ -9910,7 +10130,11 @@ declare var HTMLBodyElement: {
|
|
|
9910
10130
|
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
|
|
9911
10131
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */
|
|
9912
10132
|
disabled: boolean;
|
|
9913
|
-
/**
|
|
10133
|
+
/**
|
|
10134
|
+
* Retrieves a reference to the form that the object is embedded in.
|
|
10135
|
+
*
|
|
10136
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)
|
|
10137
|
+
*/
|
|
9914
10138
|
readonly form: HTMLFormElement | null;
|
|
9915
10139
|
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
|
|
9916
10140
|
formAction: string;
|
|
@@ -9938,7 +10162,11 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
|
|
|
9938
10162
|
type: "submit" | "reset" | "button";
|
|
9939
10163
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
|
9940
10164
|
readonly validationMessage: string;
|
|
9941
|
-
/**
|
|
10165
|
+
/**
|
|
10166
|
+
* Returns a ValidityState object that represents the validity states of an element.
|
|
10167
|
+
*
|
|
10168
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)
|
|
10169
|
+
*/
|
|
9942
10170
|
readonly validity: ValidityState;
|
|
9943
10171
|
/**
|
|
9944
10172
|
* Sets or retrieves the default or selected value of the control.
|
|
@@ -9946,7 +10174,11 @@ interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
|
|
|
9946
10174
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
|
|
9947
10175
|
*/
|
|
9948
10176
|
value: string;
|
|
9949
|
-
/**
|
|
10177
|
+
/**
|
|
10178
|
+
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
10179
|
+
*
|
|
10180
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)
|
|
10181
|
+
*/
|
|
9950
10182
|
readonly willValidate: boolean;
|
|
9951
10183
|
/**
|
|
9952
10184
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
@@ -10110,7 +10342,11 @@ declare var HTMLDataElement: {
|
|
|
10110
10342
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)
|
|
10111
10343
|
*/
|
|
10112
10344
|
interface HTMLDataListElement extends HTMLElement {
|
|
10113
|
-
/**
|
|
10345
|
+
/**
|
|
10346
|
+
* Returns an HTMLCollection of the option elements of the datalist element.
|
|
10347
|
+
*
|
|
10348
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)
|
|
10349
|
+
*/
|
|
10114
10350
|
readonly options: HTMLCollectionOf<HTMLOptionElement>;
|
|
10115
10351
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
10116
10352
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -10347,17 +10583,33 @@ interface HTMLFieldSetElement extends HTMLElement {
|
|
|
10347
10583
|
disabled: boolean;
|
|
10348
10584
|
/** Returns an HTMLCollection of the form controls in the element. */
|
|
10349
10585
|
readonly elements: HTMLCollection;
|
|
10350
|
-
/**
|
|
10586
|
+
/**
|
|
10587
|
+
* Retrieves a reference to the form that the object is embedded in.
|
|
10588
|
+
*
|
|
10589
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)
|
|
10590
|
+
*/
|
|
10351
10591
|
readonly form: HTMLFormElement | null;
|
|
10352
10592
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */
|
|
10353
10593
|
name: string;
|
|
10354
|
-
/**
|
|
10594
|
+
/**
|
|
10595
|
+
* Returns the string "fieldset".
|
|
10596
|
+
*
|
|
10597
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)
|
|
10598
|
+
*/
|
|
10355
10599
|
readonly type: string;
|
|
10356
10600
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
|
10357
10601
|
readonly validationMessage: string;
|
|
10358
|
-
/**
|
|
10602
|
+
/**
|
|
10603
|
+
* Returns a ValidityState object that represents the validity states of an element.
|
|
10604
|
+
*
|
|
10605
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)
|
|
10606
|
+
*/
|
|
10359
10607
|
readonly validity: ValidityState;
|
|
10360
|
-
/**
|
|
10608
|
+
/**
|
|
10609
|
+
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
10610
|
+
*
|
|
10611
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)
|
|
10612
|
+
*/
|
|
10361
10613
|
readonly willValidate: boolean;
|
|
10362
10614
|
/**
|
|
10363
10615
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
@@ -11075,21 +11327,42 @@ declare var HTMLImageElement: {
|
|
|
11075
11327
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
|
|
11076
11328
|
*/
|
|
11077
11329
|
interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
11078
|
-
/**
|
|
11330
|
+
/**
|
|
11331
|
+
* Sets or retrieves a comma-separated list of content types.
|
|
11332
|
+
*
|
|
11333
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/accept)
|
|
11334
|
+
*/
|
|
11079
11335
|
accept: string;
|
|
11080
11336
|
/**
|
|
11081
11337
|
* Sets or retrieves how the object is aligned with adjacent text.
|
|
11082
11338
|
* @deprecated
|
|
11083
11339
|
*/
|
|
11084
11340
|
align: string;
|
|
11085
|
-
/**
|
|
11341
|
+
/**
|
|
11342
|
+
* Sets or retrieves a text alternative to the graphic.
|
|
11343
|
+
*
|
|
11344
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/alt)
|
|
11345
|
+
*/
|
|
11086
11346
|
alt: string;
|
|
11087
|
-
/**
|
|
11347
|
+
/**
|
|
11348
|
+
* Specifies whether autocomplete is applied to an editable text field.
|
|
11349
|
+
*
|
|
11350
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
|
|
11351
|
+
*/
|
|
11088
11352
|
autocomplete: AutoFill;
|
|
11353
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/capture) */
|
|
11089
11354
|
capture: string;
|
|
11090
|
-
/**
|
|
11355
|
+
/**
|
|
11356
|
+
* Sets or retrieves the state of the check box or radio button.
|
|
11357
|
+
*
|
|
11358
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checked)
|
|
11359
|
+
*/
|
|
11091
11360
|
checked: boolean;
|
|
11092
|
-
/**
|
|
11361
|
+
/**
|
|
11362
|
+
* Sets or retrieves the state of the check box or radio button.
|
|
11363
|
+
*
|
|
11364
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/defaultChecked)
|
|
11365
|
+
*/
|
|
11093
11366
|
defaultChecked: boolean;
|
|
11094
11367
|
/**
|
|
11095
11368
|
* Sets or retrieves the initial contents of the object.
|
|
@@ -11106,7 +11379,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11106
11379
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)
|
|
11107
11380
|
*/
|
|
11108
11381
|
files: FileList | null;
|
|
11109
|
-
/**
|
|
11382
|
+
/**
|
|
11383
|
+
* Retrieves a reference to the form that the object is embedded in.
|
|
11384
|
+
*
|
|
11385
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/form)
|
|
11386
|
+
*/
|
|
11110
11387
|
readonly form: HTMLFormElement | null;
|
|
11111
11388
|
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
|
|
11112
11389
|
formAction: string;
|
|
@@ -11118,7 +11395,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11118
11395
|
formNoValidate: boolean;
|
|
11119
11396
|
/** Overrides the target attribute on a form element. */
|
|
11120
11397
|
formTarget: string;
|
|
11121
|
-
/**
|
|
11398
|
+
/**
|
|
11399
|
+
* Sets or retrieves the height of the object.
|
|
11400
|
+
*
|
|
11401
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)
|
|
11402
|
+
*/
|
|
11122
11403
|
height: number;
|
|
11123
11404
|
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
|
|
11124
11405
|
indeterminate: boolean;
|
|
@@ -11162,12 +11443,25 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11162
11443
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/name)
|
|
11163
11444
|
*/
|
|
11164
11445
|
name: string;
|
|
11165
|
-
/**
|
|
11446
|
+
/**
|
|
11447
|
+
* Gets or sets a string containing a regular expression that the user's input must match.
|
|
11448
|
+
*
|
|
11449
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)
|
|
11450
|
+
*/
|
|
11166
11451
|
pattern: string;
|
|
11167
|
-
/**
|
|
11452
|
+
/**
|
|
11453
|
+
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
|
|
11454
|
+
*
|
|
11455
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)
|
|
11456
|
+
*/
|
|
11168
11457
|
placeholder: string;
|
|
11458
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/readOnly) */
|
|
11169
11459
|
readOnly: boolean;
|
|
11170
|
-
/**
|
|
11460
|
+
/**
|
|
11461
|
+
* When present, marks an element that can't be submitted without a value.
|
|
11462
|
+
*
|
|
11463
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)
|
|
11464
|
+
*/
|
|
11171
11465
|
required: boolean;
|
|
11172
11466
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
|
|
11173
11467
|
selectionDirection: "forward" | "backward" | "none" | null;
|
|
@@ -11183,8 +11477,13 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11183
11477
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionStart)
|
|
11184
11478
|
*/
|
|
11185
11479
|
selectionStart: number | null;
|
|
11480
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/size) */
|
|
11186
11481
|
size: number;
|
|
11187
|
-
/**
|
|
11482
|
+
/**
|
|
11483
|
+
* The address or URL of the a media resource that is to be considered.
|
|
11484
|
+
*
|
|
11485
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/src)
|
|
11486
|
+
*/
|
|
11188
11487
|
src: string;
|
|
11189
11488
|
/**
|
|
11190
11489
|
* Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.
|
|
@@ -11205,7 +11504,11 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11205
11504
|
useMap: string;
|
|
11206
11505
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
|
11207
11506
|
readonly validationMessage: string;
|
|
11208
|
-
/**
|
|
11507
|
+
/**
|
|
11508
|
+
* Returns a ValidityState object that represents the validity states of an element.
|
|
11509
|
+
*
|
|
11510
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
|
|
11511
|
+
*/
|
|
11209
11512
|
readonly validity: ValidityState;
|
|
11210
11513
|
/**
|
|
11211
11514
|
* Returns the value of the data at the cursor's current position.
|
|
@@ -11229,9 +11532,17 @@ interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
|
|
|
11229
11532
|
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
|
|
11230
11533
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */
|
|
11231
11534
|
webkitdirectory: boolean;
|
|
11232
|
-
/**
|
|
11535
|
+
/**
|
|
11536
|
+
* Sets or retrieves the width of the object.
|
|
11537
|
+
*
|
|
11538
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)
|
|
11539
|
+
*/
|
|
11233
11540
|
width: number;
|
|
11234
|
-
/**
|
|
11541
|
+
/**
|
|
11542
|
+
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
11543
|
+
*
|
|
11544
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)
|
|
11545
|
+
*/
|
|
11235
11546
|
readonly willValidate: boolean;
|
|
11236
11547
|
/**
|
|
11237
11548
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
@@ -11357,7 +11668,11 @@ declare var HTMLLabelElement: {
|
|
|
11357
11668
|
interface HTMLLegendElement extends HTMLElement {
|
|
11358
11669
|
/** @deprecated */
|
|
11359
11670
|
align: string;
|
|
11360
|
-
/**
|
|
11671
|
+
/**
|
|
11672
|
+
* Retrieves a reference to the form that the object is embedded in.
|
|
11673
|
+
*
|
|
11674
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement/form)
|
|
11675
|
+
*/
|
|
11361
11676
|
readonly form: HTMLFormElement | null;
|
|
11362
11677
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
11363
11678
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -12051,7 +12366,11 @@ interface HTMLOptionElement extends HTMLElement {
|
|
|
12051
12366
|
/** Sets or retrieves the status of an option. */
|
|
12052
12367
|
defaultSelected: boolean;
|
|
12053
12368
|
disabled: boolean;
|
|
12054
|
-
/**
|
|
12369
|
+
/**
|
|
12370
|
+
* Retrieves a reference to the form that the object is embedded in.
|
|
12371
|
+
*
|
|
12372
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)
|
|
12373
|
+
*/
|
|
12055
12374
|
readonly form: HTMLFormElement | null;
|
|
12056
12375
|
/** Sets or retrieves the ordinal position of an option in a list box. */
|
|
12057
12376
|
readonly index: number;
|
|
@@ -12139,15 +12458,21 @@ interface HTMLOrSVGElement {
|
|
|
12139
12458
|
*/
|
|
12140
12459
|
interface HTMLOutputElement extends HTMLElement {
|
|
12141
12460
|
defaultValue: string;
|
|
12461
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */
|
|
12142
12462
|
readonly form: HTMLFormElement | null;
|
|
12143
12463
|
readonly htmlFor: DOMTokenList;
|
|
12144
12464
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
|
|
12145
12465
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
12146
12466
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
|
|
12147
12467
|
name: string;
|
|
12148
|
-
/**
|
|
12468
|
+
/**
|
|
12469
|
+
* Returns the string "output".
|
|
12470
|
+
*
|
|
12471
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)
|
|
12472
|
+
*/
|
|
12149
12473
|
readonly type: string;
|
|
12150
12474
|
readonly validationMessage: string;
|
|
12475
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */
|
|
12151
12476
|
readonly validity: ValidityState;
|
|
12152
12477
|
/**
|
|
12153
12478
|
* Returns the element's current value.
|
|
@@ -12157,6 +12482,7 @@ interface HTMLOutputElement extends HTMLElement {
|
|
|
12157
12482
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
|
|
12158
12483
|
*/
|
|
12159
12484
|
value: string;
|
|
12485
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */
|
|
12160
12486
|
readonly willValidate: boolean;
|
|
12161
12487
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */
|
|
12162
12488
|
checkValidity(): boolean;
|
|
@@ -12417,9 +12743,17 @@ interface HTMLSelectElement extends HTMLElement {
|
|
|
12417
12743
|
readonly form: HTMLFormElement | null;
|
|
12418
12744
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */
|
|
12419
12745
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
12420
|
-
/**
|
|
12746
|
+
/**
|
|
12747
|
+
* Sets or retrieves the number of objects in a collection.
|
|
12748
|
+
*
|
|
12749
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)
|
|
12750
|
+
*/
|
|
12421
12751
|
length: number;
|
|
12422
|
-
/**
|
|
12752
|
+
/**
|
|
12753
|
+
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
|
|
12754
|
+
*
|
|
12755
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)
|
|
12756
|
+
*/
|
|
12423
12757
|
multiple: boolean;
|
|
12424
12758
|
/**
|
|
12425
12759
|
* Sets or retrieves the name of the object.
|
|
@@ -12433,7 +12767,11 @@ interface HTMLSelectElement extends HTMLElement {
|
|
|
12433
12767
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)
|
|
12434
12768
|
*/
|
|
12435
12769
|
readonly options: HTMLOptionsCollection;
|
|
12436
|
-
/**
|
|
12770
|
+
/**
|
|
12771
|
+
* When present, marks an element that can't be submitted without a value.
|
|
12772
|
+
*
|
|
12773
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)
|
|
12774
|
+
*/
|
|
12437
12775
|
required: boolean;
|
|
12438
12776
|
/**
|
|
12439
12777
|
* Sets or retrieves the index of the selected option in a select object.
|
|
@@ -12443,7 +12781,11 @@ interface HTMLSelectElement extends HTMLElement {
|
|
|
12443
12781
|
selectedIndex: number;
|
|
12444
12782
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */
|
|
12445
12783
|
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
|
|
12446
|
-
/**
|
|
12784
|
+
/**
|
|
12785
|
+
* Sets or retrieves the number of rows in the list box.
|
|
12786
|
+
*
|
|
12787
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)
|
|
12788
|
+
*/
|
|
12447
12789
|
size: number;
|
|
12448
12790
|
/**
|
|
12449
12791
|
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
|
|
@@ -12453,7 +12795,11 @@ interface HTMLSelectElement extends HTMLElement {
|
|
|
12453
12795
|
readonly type: "select-one" | "select-multiple";
|
|
12454
12796
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
|
12455
12797
|
readonly validationMessage: string;
|
|
12456
|
-
/**
|
|
12798
|
+
/**
|
|
12799
|
+
* Returns a ValidityState object that represents the validity states of an element.
|
|
12800
|
+
*
|
|
12801
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)
|
|
12802
|
+
*/
|
|
12457
12803
|
readonly validity: ValidityState;
|
|
12458
12804
|
/**
|
|
12459
12805
|
* Sets or retrieves the value which is returned to the server when the form control is submitted.
|
|
@@ -12461,7 +12807,11 @@ interface HTMLSelectElement extends HTMLElement {
|
|
|
12461
12807
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)
|
|
12462
12808
|
*/
|
|
12463
12809
|
value: string;
|
|
12464
|
-
/**
|
|
12810
|
+
/**
|
|
12811
|
+
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
12812
|
+
*
|
|
12813
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)
|
|
12814
|
+
*/
|
|
12465
12815
|
readonly willValidate: boolean;
|
|
12466
12816
|
/**
|
|
12467
12817
|
* Adds an element to the areas, controlRange, or options collection.
|
|
@@ -13169,19 +13519,38 @@ declare var HTMLTemplateElement: {
|
|
|
13169
13519
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)
|
|
13170
13520
|
*/
|
|
13171
13521
|
interface HTMLTextAreaElement extends HTMLElement {
|
|
13522
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
|
|
13172
13523
|
autocomplete: AutoFill;
|
|
13173
|
-
/**
|
|
13524
|
+
/**
|
|
13525
|
+
* Sets or retrieves the width of the object.
|
|
13526
|
+
*
|
|
13527
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/cols)
|
|
13528
|
+
*/
|
|
13174
13529
|
cols: number;
|
|
13175
|
-
/**
|
|
13530
|
+
/**
|
|
13531
|
+
* Sets or retrieves the initial contents of the object.
|
|
13532
|
+
*
|
|
13533
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/defaultValue)
|
|
13534
|
+
*/
|
|
13176
13535
|
defaultValue: string;
|
|
13177
13536
|
dirName: string;
|
|
13537
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/disabled) */
|
|
13178
13538
|
disabled: boolean;
|
|
13179
|
-
/**
|
|
13539
|
+
/**
|
|
13540
|
+
* Retrieves a reference to the form that the object is embedded in.
|
|
13541
|
+
*
|
|
13542
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/form)
|
|
13543
|
+
*/
|
|
13180
13544
|
readonly form: HTMLFormElement | null;
|
|
13181
13545
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */
|
|
13182
13546
|
readonly labels: NodeListOf<HTMLLabelElement>;
|
|
13183
|
-
/**
|
|
13547
|
+
/**
|
|
13548
|
+
* Sets or retrieves the maximum number of characters that the user can enter in a text control.
|
|
13549
|
+
*
|
|
13550
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/maxLength)
|
|
13551
|
+
*/
|
|
13184
13552
|
maxLength: number;
|
|
13553
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/minLength) */
|
|
13185
13554
|
minLength: number;
|
|
13186
13555
|
/**
|
|
13187
13556
|
* Sets or retrieves the name of the object.
|
|
@@ -13189,19 +13558,45 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
13189
13558
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/name)
|
|
13190
13559
|
*/
|
|
13191
13560
|
name: string;
|
|
13192
|
-
/**
|
|
13561
|
+
/**
|
|
13562
|
+
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
|
|
13563
|
+
*
|
|
13564
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/placeholder)
|
|
13565
|
+
*/
|
|
13193
13566
|
placeholder: string;
|
|
13194
|
-
/**
|
|
13567
|
+
/**
|
|
13568
|
+
* Sets or retrieves the value indicated whether the content of the object is read-only.
|
|
13569
|
+
*
|
|
13570
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/readOnly)
|
|
13571
|
+
*/
|
|
13195
13572
|
readOnly: boolean;
|
|
13196
|
-
/**
|
|
13573
|
+
/**
|
|
13574
|
+
* When present, marks an element that can't be submitted without a value.
|
|
13575
|
+
*
|
|
13576
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/required)
|
|
13577
|
+
*/
|
|
13197
13578
|
required: boolean;
|
|
13198
|
-
/**
|
|
13579
|
+
/**
|
|
13580
|
+
* Sets or retrieves the number of horizontal rows contained in the object.
|
|
13581
|
+
*
|
|
13582
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/rows)
|
|
13583
|
+
*/
|
|
13199
13584
|
rows: number;
|
|
13585
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionDirection) */
|
|
13200
13586
|
selectionDirection: "forward" | "backward" | "none";
|
|
13201
|
-
/**
|
|
13587
|
+
/**
|
|
13588
|
+
* Gets or sets the end position or offset of a text selection.
|
|
13589
|
+
*
|
|
13590
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionEnd)
|
|
13591
|
+
*/
|
|
13202
13592
|
selectionEnd: number;
|
|
13203
|
-
/**
|
|
13593
|
+
/**
|
|
13594
|
+
* Gets or sets the starting position or offset of a text selection.
|
|
13595
|
+
*
|
|
13596
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/selectionStart)
|
|
13597
|
+
*/
|
|
13204
13598
|
selectionStart: number;
|
|
13599
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
|
|
13205
13600
|
readonly textLength: number;
|
|
13206
13601
|
/**
|
|
13207
13602
|
* Retrieves the type of control.
|
|
@@ -13211,7 +13606,11 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
13211
13606
|
readonly type: string;
|
|
13212
13607
|
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
|
|
13213
13608
|
readonly validationMessage: string;
|
|
13214
|
-
/**
|
|
13609
|
+
/**
|
|
13610
|
+
* Returns a ValidityState object that represents the validity states of an element.
|
|
13611
|
+
*
|
|
13612
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/validity)
|
|
13613
|
+
*/
|
|
13215
13614
|
readonly validity: ValidityState;
|
|
13216
13615
|
/**
|
|
13217
13616
|
* Retrieves or sets the text in the entry field of the textArea element.
|
|
@@ -13219,9 +13618,17 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
13219
13618
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/value)
|
|
13220
13619
|
*/
|
|
13221
13620
|
value: string;
|
|
13222
|
-
/**
|
|
13621
|
+
/**
|
|
13622
|
+
* Returns whether an element will successfully validate based on forms validation rules and constraints.
|
|
13623
|
+
*
|
|
13624
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/willValidate)
|
|
13625
|
+
*/
|
|
13223
13626
|
readonly willValidate: boolean;
|
|
13224
|
-
/**
|
|
13627
|
+
/**
|
|
13628
|
+
* Sets or retrieves how to handle wordwrapping in the object.
|
|
13629
|
+
*
|
|
13630
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/wrap)
|
|
13631
|
+
*/
|
|
13225
13632
|
wrap: string;
|
|
13226
13633
|
/**
|
|
13227
13634
|
* Returns whether a form will validate when it is submitted, without having to submit it.
|
|
@@ -13231,13 +13638,18 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
13231
13638
|
checkValidity(): boolean;
|
|
13232
13639
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */
|
|
13233
13640
|
reportValidity(): boolean;
|
|
13234
|
-
/**
|
|
13641
|
+
/**
|
|
13642
|
+
* Highlights the input area of a form element.
|
|
13643
|
+
*
|
|
13644
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/select)
|
|
13645
|
+
*/
|
|
13235
13646
|
select(): void;
|
|
13236
13647
|
/**
|
|
13237
13648
|
* Sets a custom error message that is displayed when a form is submitted.
|
|
13238
13649
|
* @param error Sets a custom error message that is displayed when a form is submitted.
|
|
13239
13650
|
*/
|
|
13240
13651
|
setCustomValidity(error: string): void;
|
|
13652
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setRangeText) */
|
|
13241
13653
|
setRangeText(replacement: string): void;
|
|
13242
13654
|
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
|
|
13243
13655
|
/**
|
|
@@ -13245,6 +13657,8 @@ interface HTMLTextAreaElement extends HTMLElement {
|
|
|
13245
13657
|
* @param start The offset into the text field for the start of the selection.
|
|
13246
13658
|
* @param end The offset into the text field for the end of the selection.
|
|
13247
13659
|
* @param direction The direction in which the selection is performed.
|
|
13660
|
+
*
|
|
13661
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/setSelectionRange)
|
|
13248
13662
|
*/
|
|
13249
13663
|
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
|
|
13250
13664
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -17666,6 +18080,10 @@ declare var PluginArray: {
|
|
|
17666
18080
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent)
|
|
17667
18081
|
*/
|
|
17668
18082
|
interface PointerEvent extends MouseEvent {
|
|
18083
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/altitudeAngle) */
|
|
18084
|
+
readonly altitudeAngle: number;
|
|
18085
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/azimuthAngle) */
|
|
18086
|
+
readonly azimuthAngle: number;
|
|
17669
18087
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */
|
|
17670
18088
|
readonly height: number;
|
|
17671
18089
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */
|
|
@@ -20220,14 +20638,23 @@ declare var SVGLength: {
|
|
|
20220
20638
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)
|
|
20221
20639
|
*/
|
|
20222
20640
|
interface SVGLengthList {
|
|
20641
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/length) */
|
|
20223
20642
|
readonly length: number;
|
|
20643
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/numberOfItems) */
|
|
20224
20644
|
readonly numberOfItems: number;
|
|
20645
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/appendItem) */
|
|
20225
20646
|
appendItem(newItem: SVGLength): SVGLength;
|
|
20647
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/clear) */
|
|
20226
20648
|
clear(): void;
|
|
20649
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/getItem) */
|
|
20227
20650
|
getItem(index: number): SVGLength;
|
|
20651
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/initialize) */
|
|
20228
20652
|
initialize(newItem: SVGLength): SVGLength;
|
|
20653
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/insertItemBefore) */
|
|
20229
20654
|
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
|
|
20655
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/removeItem) */
|
|
20230
20656
|
removeItem(index: number): SVGLength;
|
|
20657
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList/replaceItem) */
|
|
20231
20658
|
replaceItem(newItem: SVGLength, index: number): SVGLength;
|
|
20232
20659
|
[index: number]: SVGLength;
|
|
20233
20660
|
}
|
|
@@ -22812,7 +23239,7 @@ declare var URLSearchParams: {
|
|
|
22812
23239
|
interface UserActivation {
|
|
22813
23240
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */
|
|
22814
23241
|
readonly hasBeenActive: boolean;
|
|
22815
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/
|
|
23242
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/isActive) */
|
|
22816
23243
|
readonly isActive: boolean;
|
|
22817
23244
|
}
|
|
22818
23245
|
|
|
@@ -26977,6 +27404,10 @@ declare namespace WebAssembly {
|
|
|
26977
27404
|
function validate(bytes: BufferSource): boolean;
|
|
26978
27405
|
}
|
|
26979
27406
|
|
|
27407
|
+
interface AudioDataOutputCallback {
|
|
27408
|
+
(output: AudioData): void;
|
|
27409
|
+
}
|
|
27410
|
+
|
|
26980
27411
|
interface BlobCallback {
|
|
26981
27412
|
(blob: Blob | null): void;
|
|
26982
27413
|
}
|
|
@@ -26993,6 +27424,10 @@ interface DecodeSuccessCallback {
|
|
|
26993
27424
|
(decodedData: AudioBuffer): void;
|
|
26994
27425
|
}
|
|
26995
27426
|
|
|
27427
|
+
interface EncodedAudioChunkOutputCallback {
|
|
27428
|
+
(output: EncodedAudioChunk, metadata?: EncodedAudioChunkMetadata): void;
|
|
27429
|
+
}
|
|
27430
|
+
|
|
26996
27431
|
interface EncodedVideoChunkOutputCallback {
|
|
26997
27432
|
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
|
|
26998
27433
|
}
|
|
@@ -28276,7 +28711,7 @@ type ReportList = Report[];
|
|
|
28276
28711
|
type RequestInfo = Request | string;
|
|
28277
28712
|
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
|
|
28278
28713
|
type TimerHandler = string | Function;
|
|
28279
|
-
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
|
|
28714
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | MediaSourceHandle | ReadableStream | WritableStream | TransformStream | AudioData | VideoFrame | ArrayBuffer;
|
|
28280
28715
|
type Uint32List = Uint32Array | GLuint[];
|
|
28281
28716
|
type VibratePattern = number | number[];
|
|
28282
28717
|
type WindowProxy = Window;
|
|
@@ -28289,6 +28724,7 @@ type AppendMode = "segments" | "sequence";
|
|
|
28289
28724
|
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
|
|
28290
28725
|
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
|
|
28291
28726
|
type AudioContextState = "closed" | "running" | "suspended";
|
|
28727
|
+
type AudioSampleFormat = "f32" | "f32-planar" | "s16" | "s16-planar" | "s32" | "s32-planar" | "u8" | "u8-planar";
|
|
28292
28728
|
type AuthenticatorAttachment = "cross-platform" | "platform";
|
|
28293
28729
|
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
|
|
28294
28730
|
type AutoFillAddressKind = "billing" | "shipping";
|
|
@@ -28302,6 +28738,7 @@ type AutomationRate = "a-rate" | "k-rate";
|
|
|
28302
28738
|
type AvcBitstreamFormat = "annexb" | "avc";
|
|
28303
28739
|
type BinaryType = "arraybuffer" | "blob";
|
|
28304
28740
|
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
|
|
28741
|
+
type BitrateMode = "constant" | "variable";
|
|
28305
28742
|
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
|
|
28306
28743
|
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
|
|
28307
28744
|
type CanPlayTypeResult = "" | "maybe" | "probably";
|
|
@@ -28331,6 +28768,7 @@ type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
|
|
|
28331
28768
|
type DistanceModelType = "exponential" | "inverse" | "linear";
|
|
28332
28769
|
type DocumentReadyState = "complete" | "interactive" | "loading";
|
|
28333
28770
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
28771
|
+
type EncodedAudioChunkType = "delta" | "key";
|
|
28334
28772
|
type EncodedVideoChunkType = "delta" | "key";
|
|
28335
28773
|
type EndOfStreamError = "decode" | "network";
|
|
28336
28774
|
type EndingType = "native" | "transparent";
|
|
@@ -28379,6 +28817,7 @@ type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload"
|
|
|
28379
28817
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
28380
28818
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
28381
28819
|
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
28820
|
+
type OpusBitstreamFormat = "ogg" | "opus";
|
|
28382
28821
|
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
|
|
28383
28822
|
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
|
|
28384
28823
|
type OverSampleType = "2x" | "4x" | "none";
|