Skip to content

Commit cb71040

Browse files
committed
Support [LegacyNoInterfaceObject]
1 parent 9be01db commit cb71040

31 files changed

+243
-186
lines changed

baselines/dom.generated.d.ts

+103-61
Original file line numberDiff line numberDiff line change
@@ -135,30 +135,22 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
135135

136136
interface AuthenticationExtensionsClientInputs {
137137
appid?: string;
138-
authnSel?: AuthenticatorSelectionList;
139-
exts?: boolean;
140-
loc?: boolean;
141-
txAuthGeneric?: txAuthGenericArg;
142-
txAuthSimple?: string;
143-
uvi?: boolean;
138+
appidExclude?: string;
139+
credProps?: boolean;
144140
uvm?: boolean;
145141
}
146142

147143
interface AuthenticationExtensionsClientOutputs {
148144
appid?: boolean;
149-
authnSel?: boolean;
150-
exts?: AuthenticationExtensionsSupported;
151-
loc?: Coordinates;
152-
txAuthGeneric?: ArrayBuffer;
153-
txAuthSimple?: string;
154-
uvi?: ArrayBuffer;
145+
credProps?: CredentialPropertiesOutput;
155146
uvm?: UvmEntries;
156147
}
157148

158149
interface AuthenticatorSelectionCriteria {
159-
authenticatorAttachment?: AuthenticatorAttachment;
150+
authenticatorAttachment?: string;
160151
requireResidentKey?: boolean;
161-
userVerification?: UserVerificationRequirement;
152+
residentKey?: string;
153+
userVerification?: string;
162154
}
163155

164156
interface BiquadFilterOptions extends AudioNodeOptions {
@@ -284,6 +276,10 @@ interface CredentialCreationOptions {
284276
signal?: AbortSignal;
285277
}
286278

279+
interface CredentialPropertiesOutput {
280+
rk?: boolean;
281+
}
282+
287283
interface CredentialRequestOptions {
288284
mediation?: CredentialMediationRequirement;
289285
publicKey?: PublicKeyCredentialRequestOptions;
@@ -1078,7 +1074,7 @@ interface PropertyIndexedKeyframes {
10781074
}
10791075

10801076
interface PublicKeyCredentialCreationOptions {
1081-
attestation?: AttestationConveyancePreference;
1077+
attestation?: string;
10821078
authenticatorSelection?: AuthenticatorSelectionCriteria;
10831079
challenge: BufferSource;
10841080
excludeCredentials?: PublicKeyCredentialDescriptor[];
@@ -1091,18 +1087,17 @@ interface PublicKeyCredentialCreationOptions {
10911087

10921088
interface PublicKeyCredentialDescriptor {
10931089
id: BufferSource;
1094-
transports?: AuthenticatorTransport[];
1095-
type: PublicKeyCredentialType;
1090+
transports?: string[];
1091+
type: string;
10961092
}
10971093

10981094
interface PublicKeyCredentialEntity {
1099-
icon?: string;
11001095
name: string;
11011096
}
11021097

11031098
interface PublicKeyCredentialParameters {
11041099
alg: COSEAlgorithmIdentifier;
1105-
type: PublicKeyCredentialType;
1100+
type: string;
11061101
}
11071102

11081103
interface PublicKeyCredentialRequestOptions {
@@ -1111,7 +1106,7 @@ interface PublicKeyCredentialRequestOptions {
11111106
extensions?: AuthenticationExtensionsClientInputs;
11121107
rpId?: string;
11131108
timeout?: number;
1114-
userVerification?: UserVerificationRequirement;
1109+
userVerification?: string;
11151110
}
11161111

11171112
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
@@ -1896,11 +1891,6 @@ interface WorkletOptions {
18961891
credentials?: RequestCredentials;
18971892
}
18981893

1899-
interface txAuthGenericArg {
1900-
content: ArrayBuffer;
1901-
contentType: string;
1902-
}
1903-
19041894
interface EventListener {
19051895
(evt: Event): void;
19061896
}
@@ -3620,17 +3610,6 @@ declare var ConvolverNode: {
36203610
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
36213611
};
36223612

3623-
/** The position and altitude of the device on Earth, as well as the accuracy with which these properties are calculated. */
3624-
interface Coordinates {
3625-
readonly accuracy: number;
3626-
readonly altitude: number | null;
3627-
readonly altitudeAccuracy: number | null;
3628-
readonly heading: number | null;
3629-
readonly latitude: number;
3630-
readonly longitude: number;
3631-
readonly speed: number | null;
3632-
}
3633-
36343613
/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */
36353614
interface CountQueuingStrategy extends QueuingStrategy {
36363615
highWaterMark: number;
@@ -5659,6 +5638,52 @@ interface Geolocation {
56595638
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
56605639
}
56615640

5641+
declare var Geolocation: {
5642+
prototype: Geolocation;
5643+
new(): Geolocation;
5644+
};
5645+
5646+
interface GeolocationCoordinates {
5647+
readonly accuracy: number;
5648+
readonly altitude: number | null;
5649+
readonly altitudeAccuracy: number | null;
5650+
readonly heading: number | null;
5651+
readonly latitude: number;
5652+
readonly longitude: number;
5653+
readonly speed: number | null;
5654+
}
5655+
5656+
declare var GeolocationCoordinates: {
5657+
prototype: GeolocationCoordinates;
5658+
new(): GeolocationCoordinates;
5659+
};
5660+
5661+
interface GeolocationPosition {
5662+
readonly coords: GeolocationCoordinates;
5663+
readonly timestamp: number;
5664+
}
5665+
5666+
declare var GeolocationPosition: {
5667+
prototype: GeolocationPosition;
5668+
new(): GeolocationPosition;
5669+
};
5670+
5671+
interface GeolocationPositionError {
5672+
readonly code: number;
5673+
readonly message: string;
5674+
readonly PERMISSION_DENIED: number;
5675+
readonly POSITION_UNAVAILABLE: number;
5676+
readonly TIMEOUT: number;
5677+
}
5678+
5679+
declare var GeolocationPositionError: {
5680+
prototype: GeolocationPositionError;
5681+
new(): GeolocationPositionError;
5682+
readonly PERMISSION_DENIED: number;
5683+
readonly POSITION_UNAVAILABLE: number;
5684+
readonly TIMEOUT: number;
5685+
};
5686+
56625687
interface GlobalEventHandlersEventMap {
56635688
"abort": UIEvent;
56645689
"animationcancel": AnimationEvent;
@@ -11767,21 +11792,6 @@ declare var PopStateEvent: {
1176711792
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
1176811793
};
1176911794

11770-
/** The position of the concerned device at a given time. The position, represented by a Coordinates object, comprehends the 2D position of the device, on a spheroid representing the Earth, but also its altitude and its speed. */
11771-
interface Position {
11772-
readonly coords: Coordinates;
11773-
readonly timestamp: number;
11774-
}
11775-
11776-
/** The reason of an error occurring when using the geolocating device. */
11777-
interface PositionError {
11778-
readonly code: number;
11779-
readonly message: string;
11780-
readonly PERMISSION_DENIED: number;
11781-
readonly POSITION_UNAVAILABLE: number;
11782-
readonly TIMEOUT: number;
11783-
}
11784-
1178511795
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
1178611796
interface ProcessingInstruction extends CharacterData, LinkStyle {
1178711797
readonly ownerDocument: Document;
@@ -12473,6 +12483,11 @@ interface ReadableByteStreamController {
1247312483
error(error?: any): void;
1247412484
}
1247512485

12486+
declare var ReadableByteStreamController: {
12487+
prototype: ReadableByteStreamController;
12488+
new(): ReadableByteStreamController;
12489+
};
12490+
1247612491
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
1247712492
interface ReadableStream<R = any> {
1247812493
readonly locked: boolean;
@@ -12497,26 +12512,46 @@ interface ReadableStreamBYOBReader {
1249712512
releaseLock(): void;
1249812513
}
1249912514

12515+
declare var ReadableStreamBYOBReader: {
12516+
prototype: ReadableStreamBYOBReader;
12517+
new(): ReadableStreamBYOBReader;
12518+
};
12519+
1250012520
interface ReadableStreamBYOBRequest {
1250112521
readonly view: ArrayBufferView;
1250212522
respond(bytesWritten: number): void;
1250312523
respondWithNewView(view: ArrayBufferView): void;
1250412524
}
1250512525

12526+
declare var ReadableStreamBYOBRequest: {
12527+
prototype: ReadableStreamBYOBRequest;
12528+
new(): ReadableStreamBYOBRequest;
12529+
};
12530+
1250612531
interface ReadableStreamDefaultController<R = any> {
1250712532
readonly desiredSize: number | null;
1250812533
close(): void;
1250912534
enqueue(chunk: R): void;
1251012535
error(error?: any): void;
1251112536
}
1251212537

12538+
declare var ReadableStreamDefaultController: {
12539+
prototype: ReadableStreamDefaultController;
12540+
new(): ReadableStreamDefaultController;
12541+
};
12542+
1251312543
interface ReadableStreamDefaultReader<R = any> {
1251412544
readonly closed: Promise<void>;
1251512545
cancel(reason?: any): Promise<void>;
1251612546
read(): Promise<ReadableStreamReadResult<R>>;
1251712547
releaseLock(): void;
1251812548
}
1251912549

12550+
declare var ReadableStreamDefaultReader: {
12551+
prototype: ReadableStreamDefaultReader;
12552+
new(): ReadableStreamDefaultReader;
12553+
};
12554+
1252012555
interface ReadableStreamReader<R = any> {
1252112556
cancel(): Promise<void>;
1252212557
read(): Promise<ReadableStreamReadResult<R>>;
@@ -15864,6 +15899,11 @@ interface TransformStreamDefaultController<O = any> {
1586415899
terminate(): void;
1586515900
}
1586615901

15902+
declare var TransformStreamDefaultController: {
15903+
prototype: TransformStreamDefaultController;
15904+
new(): TransformStreamDefaultController;
15905+
};
15906+
1586715907
/** Events providing information related to transitions. */
1586815908
interface TransitionEvent extends Event {
1586915909
readonly elapsedTime: number;
@@ -18664,6 +18704,11 @@ interface WritableStreamDefaultController {
1866418704
error(error?: any): void;
1866518705
}
1866618706

18707+
declare var WritableStreamDefaultController: {
18708+
prototype: WritableStreamDefaultController;
18709+
new(): WritableStreamDefaultController;
18710+
};
18711+
1866718712
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
1866818713
interface WritableStreamDefaultWriter<W = any> {
1866918714
readonly closed: Promise<void>;
@@ -18675,6 +18720,11 @@ interface WritableStreamDefaultWriter<W = any> {
1867518720
write(chunk: W): Promise<void>;
1867618721
}
1867718722

18723+
declare var WritableStreamDefaultWriter: {
18724+
prototype: WritableStreamDefaultWriter;
18725+
new(): WritableStreamDefaultWriter;
18726+
};
18727+
1867818728
/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
1867918729
interface XMLDocument extends Document {
1868018730
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -19177,11 +19227,11 @@ interface PerformanceObserverCallback {
1917719227
}
1917819228

1917919229
interface PositionCallback {
19180-
(position: Position): void;
19230+
(position: GeolocationPosition): void;
1918119231
}
1918219232

1918319233
interface PositionErrorCallback {
19184-
(positionError: PositionError): void;
19234+
(positionError: GeolocationPositionError): void;
1918519235
}
1918619236

1918719237
interface QueuingStrategySizeCallback<T = any> {
@@ -19891,9 +19941,6 @@ type PerformanceEntryList = PerformanceEntry[];
1989119941
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
1989219942
type VibratePattern = number | number[];
1989319943
type COSEAlgorithmIdentifier = number;
19894-
type AuthenticatorSelectionList = AAGUID[];
19895-
type AAGUID = BufferSource;
19896-
type AuthenticationExtensionsSupported = string[];
1989719944
type UvmEntry = number[];
1989819945
type UvmEntries = UvmEntry[];
1989919946
type AlgorithmIdentifier = string | Algorithm;
@@ -19933,11 +19980,8 @@ type WindowProxy = Window;
1993319980
type AlignSetting = "center" | "end" | "left" | "right" | "start";
1993419981
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
1993519982
type AppendMode = "segments" | "sequence";
19936-
type AttestationConveyancePreference = "direct" | "indirect" | "none";
1993719983
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
1993819984
type AudioContextState = "closed" | "running" | "suspended";
19939-
type AuthenticatorAttachment = "cross-platform" | "platform";
19940-
type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
1994119985
type AutoKeyword = "auto";
1994219986
type AutomationRate = "a-rate" | "k-rate";
1994319987
type BinaryType = "arraybuffer" | "blob";
@@ -20006,7 +20050,6 @@ type PermissionState = "denied" | "granted" | "prompt";
2000620050
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
2000720051
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
2000820052
type PremultiplyAlpha = "default" | "none" | "premultiply";
20009-
type PublicKeyCredentialType = "public-key";
2001020053
type PushEncryptionKeyName = "auth" | "p256dh";
2001120054
type PushPermissionState = "denied" | "granted" | "prompt";
2001220055
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
@@ -20061,7 +20104,6 @@ type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "su
2006120104
type TextTrackMode = "disabled" | "hidden" | "showing";
2006220105
type TouchType = "direct" | "stylus";
2006320106
type Transport = "ble" | "nfc" | "usb";
20064-
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
2006520107
type VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";
2006620108
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
2006720109
type VisibilityState = "hidden" | "visible";

0 commit comments

Comments
 (0)