Skip to content

Commit 6b32439

Browse files
committed
feat(types): update bcd to v3.3.2
1 parent b32712d commit 6b32439

8 files changed

Lines changed: 203 additions & 75 deletions

baselines/dom.generated.d.ts

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,10 @@ interface MediaQueryListEventInit extends EventInit {
750750
media?: string;
751751
}
752752

753+
interface MediaRecorderErrorEventInit extends EventInit {
754+
error: DOMException;
755+
}
756+
753757
interface MediaRecorderOptions {
754758
audioBitsPerSecond?: number;
755759
bitsPerSecond?: number;
@@ -1615,6 +1619,11 @@ interface ShareData {
16151619
url?: string;
16161620
}
16171621

1622+
interface SpeechRecognitionErrorEventInit extends EventInit {
1623+
error: SpeechRecognitionErrorCode;
1624+
message?: string;
1625+
}
1626+
16181627
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
16191628
error: SpeechSynthesisErrorCode;
16201629
}
@@ -2163,6 +2172,15 @@ declare var AudioDestinationNode: {
21632172

21642173
/** 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. */
21652174
interface AudioListener {
2175+
readonly forwardX: AudioParam;
2176+
readonly forwardY: AudioParam;
2177+
readonly forwardZ: AudioParam;
2178+
readonly positionX: AudioParam;
2179+
readonly positionY: AudioParam;
2180+
readonly positionZ: AudioParam;
2181+
readonly upX: AudioParam;
2182+
readonly upY: AudioParam;
2183+
readonly upZ: AudioParam;
21662184
/** @deprecated */
21672185
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
21682186
/** @deprecated */
@@ -2200,10 +2218,12 @@ declare var AudioNode: {
22002218

22012219
/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */
22022220
interface AudioParam {
2221+
automationRate: AutomationRate;
22032222
readonly defaultValue: number;
22042223
readonly maxValue: number;
22052224
readonly minValue: number;
22062225
value: number;
2226+
cancelAndHoldAtTime(cancelTime: number): AudioParam;
22072227
cancelScheduledValues(cancelTime: number): AudioParam;
22082228
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
22092229
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
@@ -2412,6 +2432,7 @@ declare var Blob: {
24122432

24132433
interface BlobEvent extends Event {
24142434
readonly data: Blob;
2435+
readonly timecode: DOMHighResTimeStamp;
24152436
}
24162437

24172438
declare var BlobEvent: {
@@ -2934,6 +2955,7 @@ interface CSSStyleDeclaration {
29342955
scrollMarginBlockEnd: string;
29352956
scrollMarginBlockStart: string;
29362957
scrollMarginBottom: string;
2958+
scrollMarginInline: string;
29372959
scrollMarginInlineEnd: string;
29382960
scrollMarginInlineStart: string;
29392961
scrollMarginLeft: string;
@@ -4450,6 +4472,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
44504472
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
44514473
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
44524474
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
4475+
createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
44534476
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
44544477
createEvent(eventInterface: "MessageEvent"): MessageEvent;
44554478
createEvent(eventInterface: "MouseEvent"): MouseEvent;
@@ -4469,6 +4492,7 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
44694492
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
44704493
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
44714494
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
4495+
createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
44724496
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
44734497
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
44744498
createEvent(eventInterface: "StorageEvent"): StorageEvent;
@@ -4766,6 +4790,13 @@ interface EXT_sRGB {
47664790
interface EXT_shader_texture_lod {
47674791
}
47684792

4793+
interface EXT_texture_compression_rgtc {
4794+
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
4795+
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
4796+
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
4797+
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
4798+
}
4799+
47694800
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
47704801
interface EXT_texture_filter_anisotropic {
47714802
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
@@ -9796,6 +9827,15 @@ declare var MediaRecorder: {
97969827
isTypeSupported(type: string): boolean;
97979828
};
97989829

9830+
interface MediaRecorderErrorEvent extends Event {
9831+
readonly error: DOMException;
9832+
}
9833+
9834+
declare var MediaRecorderErrorEvent: {
9835+
readonly prototype: MediaRecorderErrorEvent;
9836+
new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
9837+
};
9838+
97999839
interface MediaSession {
98009840
metadata: MediaMetadata | null;
98019841
playbackState: MediaSessionPlaybackState;
@@ -10619,6 +10659,9 @@ declare var Notification: {
1061910659
interface OES_element_index_uint {
1062010660
}
1062110661

10662+
interface OES_fbo_render_mipmap {
10663+
}
10664+
1062210665
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
1062310666
interface OES_standard_derivatives {
1062410667
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
@@ -10677,6 +10720,7 @@ interface OfflineAudioContext extends BaseAudioContext {
1067710720
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
1067810721
resume(): Promise<void>;
1067910722
startRendering(): Promise<AudioBuffer>;
10723+
suspend(suspendTime: number): Promise<void>;
1068010724
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1068110725
addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
1068210726
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -10971,6 +11015,7 @@ declare var PerformanceEntry: {
1097111015

1097211016
/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
1097311017
interface PerformanceMark extends PerformanceEntry {
11018+
readonly detail: any;
1097411019
}
1097511020

1097611021
declare var PerformanceMark: {
@@ -10980,6 +11025,7 @@ declare var PerformanceMark: {
1098011025

1098111026
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
1098211027
interface PerformanceMeasure extends PerformanceEntry {
11028+
readonly detail: any;
1098311029
}
1098411030

1098511031
declare var PerformanceMeasure: {
@@ -11497,9 +11543,19 @@ declare var RTCDtlsTransport: {
1149711543

1149811544
/** The RTCIceCandidate interface—part of the WebRTC API—represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
1149911545
interface RTCIceCandidate {
11546+
readonly address: string | null;
1150011547
readonly candidate: string;
11548+
readonly component: RTCIceComponent | null;
11549+
readonly foundation: string | null;
11550+
readonly port: number | null;
11551+
readonly priority: number | null;
11552+
readonly protocol: RTCIceProtocol | null;
11553+
readonly relatedAddress: string | null;
11554+
readonly relatedPort: number | null;
1150111555
readonly sdpMLineIndex: number | null;
1150211556
readonly sdpMid: string | null;
11557+
readonly tcpType: RTCIceTcpCandidateType | null;
11558+
readonly type: RTCIceCandidateType | null;
1150311559
readonly usernameFragment: string | null;
1150411560
toJSON(): RTCIceCandidateInit;
1150511561
}
@@ -11626,6 +11682,7 @@ interface RTCRtpSender {
1162611682
getStats(): Promise<RTCStatsReport>;
1162711683
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
1162811684
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
11685+
setStreams(...streams: MediaStream[]): void;
1162911686
}
1163011687

1163111688
declare var RTCRtpSender: {
@@ -13940,6 +13997,49 @@ declare var SourceBufferList: {
1394013997
new(): SourceBufferList;
1394113998
};
1394213999

14000+
interface SpeechRecognitionAlternative {
14001+
readonly confidence: number;
14002+
readonly transcript: string;
14003+
}
14004+
14005+
declare var SpeechRecognitionAlternative: {
14006+
readonly prototype: SpeechRecognitionAlternative;
14007+
new(): SpeechRecognitionAlternative;
14008+
};
14009+
14010+
interface SpeechRecognitionErrorEvent extends Event {
14011+
readonly error: SpeechRecognitionErrorCode;
14012+
readonly message: string;
14013+
}
14014+
14015+
declare var SpeechRecognitionErrorEvent: {
14016+
readonly prototype: SpeechRecognitionErrorEvent;
14017+
new(type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent;
14018+
};
14019+
14020+
interface SpeechRecognitionResult {
14021+
readonly isFinal: boolean;
14022+
readonly length: number;
14023+
item(index: number): SpeechRecognitionAlternative;
14024+
[index: number]: SpeechRecognitionAlternative;
14025+
}
14026+
14027+
declare var SpeechRecognitionResult: {
14028+
readonly prototype: SpeechRecognitionResult;
14029+
new(): SpeechRecognitionResult;
14030+
};
14031+
14032+
interface SpeechRecognitionResultList {
14033+
readonly length: number;
14034+
item(index: number): SpeechRecognitionResult;
14035+
[index: number]: SpeechRecognitionResult;
14036+
}
14037+
14038+
declare var SpeechRecognitionResultList: {
14039+
readonly prototype: SpeechRecognitionResultList;
14040+
new(): SpeechRecognitionResultList;
14041+
};
14042+
1394314043
interface SpeechSynthesisEventMap {
1394414044
"voiceschanged": Event;
1394514045
}
@@ -14723,7 +14823,10 @@ declare var URLSearchParams: {
1472314823
interface VTTCue extends TextTrackCue {
1472414824
align: AlignSetting;
1472514825
line: LineAndPositionSetting;
14826+
lineAlign: LineAlignSetting;
1472614827
position: LineAndPositionSetting;
14828+
positionAlign: PositionAlignSetting;
14829+
region: VTTRegion | null;
1472714830
size: number;
1472814831
snapToLines: boolean;
1472914832
text: string;
@@ -18507,6 +18610,7 @@ type AudioContextState = "closed" | "running" | "suspended";
1850718610
type AuthenticatorAttachment = "cross-platform" | "platform";
1850818611
type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
1850918612
type AutoKeyword = "auto";
18613+
type AutomationRate = "a-rate" | "k-rate";
1851018614
type BinaryType = "arraybuffer" | "blob";
1851118615
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
1851218616
type CanPlayTypeResult = "" | "maybe" | "probably";
@@ -18547,6 +18651,7 @@ type ImageSmoothingQuality = "high" | "low" | "medium";
1854718651
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
1854818652
type KeyType = "private" | "public" | "secret";
1854918653
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
18654+
type LineAlignSetting = "center" | "end" | "start";
1855018655
type MediaDecodingType = "file" | "media-source" | "webrtc";
1855118656
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
1855218657
type MediaEncodingType = "record" | "webrtc";
@@ -18570,6 +18675,7 @@ type PaymentShippingType = "delivery" | "pickup" | "shipping";
1857018675
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push";
1857118676
type PermissionState = "denied" | "granted" | "prompt";
1857218677
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
18678+
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
1857318679
type PremultiplyAlpha = "default" | "none" | "premultiply";
1857418680
type PresentationStyle = "attachment" | "inline" | "unspecified";
1857518681
type PublicKeyCredentialType = "public-key";
@@ -18579,10 +18685,14 @@ type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
1857918685
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
1858018686
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
1858118687
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
18688+
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
18689+
type RTCIceComponent = "rtcp" | "rtp";
1858218690
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
1858318691
type RTCIceCredentialType = "password";
1858418692
type RTCIceGathererState = "complete" | "gathering" | "new";
1858518693
type RTCIceGatheringState = "complete" | "gathering" | "new";
18694+
type RTCIceProtocol = "tcp" | "udp";
18695+
type RTCIceTcpCandidateType = "active" | "passive" | "so";
1858618696
type RTCIceTransportPolicy = "all" | "relay";
1858718697
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
1858818698
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
@@ -18616,6 +18726,7 @@ type ServiceWorkerState = "activated" | "activating" | "installed" | "installing
1861618726
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
1861718727
type ShadowRootMode = "closed" | "open";
1861818728
type SlotAssignmentMode = "manual" | "named";
18729+
type SpeechRecognitionErrorCode = "aborted" | "audio-capture" | "bad-grammar" | "language-not-supported" | "network" | "no-speech" | "not-allowed" | "service-not-allowed";
1861918730
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
1862018731
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
1862118732
type TextTrackMode = "disabled" | "hidden" | "showing";

baselines/dom.iterable.generated.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,14 @@ interface SourceBufferList {
227227
[Symbol.iterator](): IterableIterator<SourceBuffer>;
228228
}
229229

230+
interface SpeechRecognitionResult {
231+
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
232+
}
233+
234+
interface SpeechRecognitionResultList {
235+
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
236+
}
237+
230238
interface StyleSheetList {
231239
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
232240
}

baselines/serviceworker.generated.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,6 +1210,13 @@ interface EXT_sRGB {
12101210
interface EXT_shader_texture_lod {
12111211
}
12121212

1213+
interface EXT_texture_compression_rgtc {
1214+
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
1215+
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
1216+
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
1217+
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
1218+
}
1219+
12131220
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
12141221
interface EXT_texture_filter_anisotropic {
12151222
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
@@ -2311,6 +2318,9 @@ declare var NotificationEvent: {
23112318
interface OES_element_index_uint {
23122319
}
23132320

2321+
interface OES_fbo_render_mipmap {
2322+
}
2323+
23142324
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
23152325
interface OES_standard_derivatives {
23162326
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
@@ -2408,6 +2418,7 @@ declare var PerformanceEntry: {
24082418

24092419
/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
24102420
interface PerformanceMark extends PerformanceEntry {
2421+
readonly detail: any;
24112422
}
24122423

24132424
declare var PerformanceMark: {
@@ -2417,6 +2428,7 @@ declare var PerformanceMark: {
24172428

24182429
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
24192430
interface PerformanceMeasure extends PerformanceEntry {
2431+
readonly detail: any;
24202432
}
24212433

24222434
declare var PerformanceMeasure: {

baselines/sharedworker.generated.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,13 @@ interface EXT_sRGB {
11541154
interface EXT_shader_texture_lod {
11551155
}
11561156

1157+
interface EXT_texture_compression_rgtc {
1158+
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
1159+
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
1160+
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
1161+
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
1162+
}
1163+
11571164
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
11581165
interface EXT_texture_filter_anisotropic {
11591166
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
@@ -2221,6 +2228,9 @@ declare var Notification: {
22212228
interface OES_element_index_uint {
22222229
}
22232230

2231+
interface OES_fbo_render_mipmap {
2232+
}
2233+
22242234
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
22252235
interface OES_standard_derivatives {
22262236
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
@@ -2318,6 +2328,7 @@ declare var PerformanceEntry: {
23182328

23192329
/** PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
23202330
interface PerformanceMark extends PerformanceEntry {
2331+
readonly detail: any;
23212332
}
23222333

23232334
declare var PerformanceMark: {
@@ -2327,6 +2338,7 @@ declare var PerformanceMark: {
23272338

23282339
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
23292340
interface PerformanceMeasure extends PerformanceEntry {
2341+
readonly detail: any;
23302342
}
23312343

23322344
declare var PerformanceMeasure: {

0 commit comments

Comments
 (0)