Skip to content

Commit e7cc431

Browse files
author
Orta Therox
authored
Merge pull request #873 from saschanaz/general3
Support [LegacyNoInterfaceObject]
2 parents bf671e9 + 115267e commit e7cc431

32 files changed

+303
-175
lines changed

baselines/dom.generated.d.ts

+98-50
Original file line numberDiff line numberDiff line change
@@ -135,29 +135,21 @@ 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 {
159150
authenticatorAttachment?: AuthenticatorAttachment;
160151
requireResidentKey?: boolean;
152+
residentKey?: ResidentKeyRequirement;
161153
userVerification?: UserVerificationRequirement;
162154
}
163155

@@ -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;
@@ -1096,7 +1092,6 @@ interface PublicKeyCredentialDescriptor {
10961092
}
10971093

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

@@ -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,7 +19980,7 @@ 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";
19983+
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
1993719984
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
1993819985
type AudioContextState = "closed" | "running" | "suspended";
1993919986
type AuthenticatorAttachment = "cross-platform" | "platform";
@@ -20045,6 +20092,7 @@ type RequestCredentials = "include" | "omit" | "same-origin";
2004520092
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
2004620093
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
2004720094
type RequestRedirect = "error" | "follow" | "manual";
20095+
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
2004820096
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
2004920097
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
2005020098
type ScopedCredentialType = "ScopedCred";

baselines/webworker.generated.d.ts

+40
Original file line numberDiff line numberDiff line change
@@ -2715,6 +2715,11 @@ interface ReadableByteStreamController {
27152715
error(error?: any): void;
27162716
}
27172717

2718+
declare var ReadableByteStreamController: {
2719+
prototype: ReadableByteStreamController;
2720+
new(): ReadableByteStreamController;
2721+
};
2722+
27182723
/** 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. */
27192724
interface ReadableStream<R = any> {
27202725
readonly locked: boolean;
@@ -2739,26 +2744,46 @@ interface ReadableStreamBYOBReader {
27392744
releaseLock(): void;
27402745
}
27412746

2747+
declare var ReadableStreamBYOBReader: {
2748+
prototype: ReadableStreamBYOBReader;
2749+
new(): ReadableStreamBYOBReader;
2750+
};
2751+
27422752
interface ReadableStreamBYOBRequest {
27432753
readonly view: ArrayBufferView;
27442754
respond(bytesWritten: number): void;
27452755
respondWithNewView(view: ArrayBufferView): void;
27462756
}
27472757

2758+
declare var ReadableStreamBYOBRequest: {
2759+
prototype: ReadableStreamBYOBRequest;
2760+
new(): ReadableStreamBYOBRequest;
2761+
};
2762+
27482763
interface ReadableStreamDefaultController<R = any> {
27492764
readonly desiredSize: number | null;
27502765
close(): void;
27512766
enqueue(chunk: R): void;
27522767
error(error?: any): void;
27532768
}
27542769

2770+
declare var ReadableStreamDefaultController: {
2771+
prototype: ReadableStreamDefaultController;
2772+
new(): ReadableStreamDefaultController;
2773+
};
2774+
27552775
interface ReadableStreamDefaultReader<R = any> {
27562776
readonly closed: Promise<void>;
27572777
cancel(reason?: any): Promise<void>;
27582778
read(): Promise<ReadableStreamReadResult<R>>;
27592779
releaseLock(): void;
27602780
}
27612781

2782+
declare var ReadableStreamDefaultReader: {
2783+
prototype: ReadableStreamDefaultReader;
2784+
new(): ReadableStreamDefaultReader;
2785+
};
2786+
27622787
interface ReadableStreamReader<R = any> {
27632788
cancel(): Promise<void>;
27642789
read(): Promise<ReadableStreamReadResult<R>>;
@@ -3236,6 +3261,11 @@ interface TransformStreamDefaultController<O = any> {
32363261
terminate(): void;
32373262
}
32383263

3264+
declare var TransformStreamDefaultController: {
3265+
prototype: TransformStreamDefaultController;
3266+
new(): TransformStreamDefaultController;
3267+
};
3268+
32393269
/** The URL interface represents an object providing static methods used for creating object URLs. */
32403270
interface URL {
32413271
hash: string;
@@ -5512,6 +5542,11 @@ interface WritableStreamDefaultController {
55125542
error(error?: any): void;
55135543
}
55145544

5545+
declare var WritableStreamDefaultController: {
5546+
prototype: WritableStreamDefaultController;
5547+
new(): WritableStreamDefaultController;
5548+
};
5549+
55155550
/** 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. */
55165551
interface WritableStreamDefaultWriter<W = any> {
55175552
readonly closed: Promise<void>;
@@ -5523,6 +5558,11 @@ interface WritableStreamDefaultWriter<W = any> {
55235558
write(chunk: W): Promise<void>;
55245559
}
55255560

5561+
declare var WritableStreamDefaultWriter: {
5562+
prototype: WritableStreamDefaultWriter;
5563+
new(): WritableStreamDefaultWriter;
5564+
};
5565+
55265566
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
55275567
"readystatechange": Event;
55285568
}

0 commit comments

Comments
 (0)