@types/web 0.0.67 → 0.0.68
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 +40 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,4 +47,4 @@ Prior to `@types/web` the web APIs were deployed with a version of TypeScript, a
|
|
|
47
47
|
|
|
48
48
|
## Deploy Metadata
|
|
49
49
|
|
|
50
|
-
You can read what changed in version 0.0.
|
|
50
|
+
You can read what changed in version 0.0.68 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fweb%400.0.68.
|
package/index.d.ts
CHANGED
|
@@ -2177,6 +2177,7 @@ declare var AudioBufferSourceNode: {
|
|
|
2177
2177
|
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
|
|
2178
2178
|
interface AudioContext extends BaseAudioContext {
|
|
2179
2179
|
readonly baseLatency: number;
|
|
2180
|
+
readonly outputLatency: number;
|
|
2180
2181
|
close(): Promise<void>;
|
|
2181
2182
|
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
|
|
2182
2183
|
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
|
|
@@ -3281,6 +3282,8 @@ interface CSSStyleSheet extends StyleSheet {
|
|
|
3281
3282
|
insertRule(rule: string, index?: number): number;
|
|
3282
3283
|
/** @deprecated */
|
|
3283
3284
|
removeRule(index?: number): void;
|
|
3285
|
+
replace(text: string): Promise<CSSStyleSheet>;
|
|
3286
|
+
replaceSync(text: string): void;
|
|
3284
3287
|
}
|
|
3285
3288
|
|
|
3286
3289
|
declare var CSSStyleSheet: {
|
|
@@ -4720,6 +4723,7 @@ interface DocumentOrShadowRoot {
|
|
|
4720
4723
|
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
|
|
4721
4724
|
*/
|
|
4722
4725
|
readonly activeElement: Element | null;
|
|
4726
|
+
adoptedStyleSheets: CSSStyleSheet[];
|
|
4723
4727
|
/** Returns document's fullscreen element. */
|
|
4724
4728
|
readonly fullscreenElement: Element | null;
|
|
4725
4729
|
readonly pictureInPictureElement: Element | null;
|
|
@@ -11346,6 +11350,19 @@ declare var Range: {
|
|
|
11346
11350
|
toString(): string;
|
|
11347
11351
|
};
|
|
11348
11352
|
|
|
11353
|
+
interface ReadableByteStreamController {
|
|
11354
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
11355
|
+
readonly desiredSize: number | null;
|
|
11356
|
+
close(): void;
|
|
11357
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
11358
|
+
error(e?: any): void;
|
|
11359
|
+
}
|
|
11360
|
+
|
|
11361
|
+
declare var ReadableByteStreamController: {
|
|
11362
|
+
prototype: ReadableByteStreamController;
|
|
11363
|
+
new(): ReadableByteStreamController;
|
|
11364
|
+
};
|
|
11365
|
+
|
|
11349
11366
|
/** 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. */
|
|
11350
11367
|
interface ReadableStream<R = any> {
|
|
11351
11368
|
readonly locked: boolean;
|
|
@@ -11361,6 +11378,27 @@ declare var ReadableStream: {
|
|
|
11361
11378
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
11362
11379
|
};
|
|
11363
11380
|
|
|
11381
|
+
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
11382
|
+
read(view: ArrayBufferView): Promise<ReadableStreamReadResult<ArrayBufferView>>;
|
|
11383
|
+
releaseLock(): void;
|
|
11384
|
+
}
|
|
11385
|
+
|
|
11386
|
+
declare var ReadableStreamBYOBReader: {
|
|
11387
|
+
prototype: ReadableStreamBYOBReader;
|
|
11388
|
+
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
11389
|
+
};
|
|
11390
|
+
|
|
11391
|
+
interface ReadableStreamBYOBRequest {
|
|
11392
|
+
readonly view: ArrayBufferView | null;
|
|
11393
|
+
respond(bytesWritten: number): void;
|
|
11394
|
+
respondWithNewView(view: ArrayBufferView): void;
|
|
11395
|
+
}
|
|
11396
|
+
|
|
11397
|
+
declare var ReadableStreamBYOBRequest: {
|
|
11398
|
+
prototype: ReadableStreamBYOBRequest;
|
|
11399
|
+
new(): ReadableStreamBYOBRequest;
|
|
11400
|
+
};
|
|
11401
|
+
|
|
11364
11402
|
interface ReadableStreamDefaultController<R = any> {
|
|
11365
11403
|
readonly desiredSize: number | null;
|
|
11366
11404
|
close(): void;
|
|
@@ -16554,7 +16592,7 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
|
|
|
16554
16592
|
/** Returns true if the toolbar is visible; otherwise, returns false. */
|
|
16555
16593
|
readonly toolbar: BarProp;
|
|
16556
16594
|
readonly top: WindowProxy | null;
|
|
16557
|
-
readonly visualViewport: VisualViewport;
|
|
16595
|
+
readonly visualViewport: VisualViewport | null;
|
|
16558
16596
|
readonly window: Window & typeof globalThis;
|
|
16559
16597
|
alert(message?: any): void;
|
|
16560
16598
|
blur(): void;
|
|
@@ -17627,7 +17665,7 @@ declare var statusbar: BarProp;
|
|
|
17627
17665
|
/** Returns true if the toolbar is visible; otherwise, returns false. */
|
|
17628
17666
|
declare var toolbar: BarProp;
|
|
17629
17667
|
declare var top: WindowProxy | null;
|
|
17630
|
-
declare var visualViewport: VisualViewport;
|
|
17668
|
+
declare var visualViewport: VisualViewport | null;
|
|
17631
17669
|
declare var window: Window & typeof globalThis;
|
|
17632
17670
|
declare function alert(message?: any): void;
|
|
17633
17671
|
declare function blur(): void;
|