Skip to content

Commit 64eb9b1

Browse files
committed
0.4.4
1 parent fb1459e commit 64eb9b1

6 files changed

Lines changed: 4 additions & 59 deletions

File tree

csswg/contain.d.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,8 @@
33
// Specification: https://drafts.csswg.org/css-contain-2/
44
// Repository: https://github.com/w3c/csswg-drafts/tree/main/css-contain-2
55

6-
declare class ContentVisibilityAutoStateChangedEvent extends Event {
7-
constructor(type: string, eventInitDict?: ContentVisibilityAutoStateChangedEventInit);
8-
readonly skipped: boolean;
9-
}
10-
11-
declare var oncontentvisibilityautostatechanged: ContentVisibilityAutoStateChangedEvent | null;
6+
declare var oncontentvisibilityautostatechange: ContentVisibilityAutoStateChangeEvent | null;
127

138
interface GlobalEventHandlersEventMap {
14-
"contentvisibilityautostatechanged": ContentVisibilityAutoStateChangedEvent;
15-
}
16-
17-
interface ContentVisibilityAutoStateChangedEventInit extends EventInit {
18-
skipped?: boolean;
9+
"contentvisibilityautostatechange": ContentVisibilityAutoStateChangeEvent;
1910
}

index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
/// <reference path="./privacycg/global-privacy-control.d.ts" />
2323

24-
/// <reference path="./tc39/array-from-async.d.ts" />
2524
/// <reference path="./tc39/esnext.d.ts" />
2625

2726
/// <reference path="./w3c/ambient-light.d.ts" />

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "new-javascript",
3-
"version": "0.4.3",
3+
"version": "0.4.4",
44
"description": "TypeScript type definitions for new JavaScript stuff that isn't yet in TypeScript's standard type definitions",
55
"main": "./index.d.ts",
66
"repository": {

tc39/array-from-async.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

tc39/esnext.d.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,6 @@
33
// Specification: https://tc39.es/ecma262/multipage/
44
// Repository: https://github.com/tc39/ecma262
55

6-
// Fundamental Objects
7-
// https://tc39.es/ecma262/multipage/fundamental-objects.html
8-
9-
interface ObjectConstructor {
10-
groupBy<T>(array: T[], callback: (item: T, index?: number) => string): Record<string, T[]>;
11-
}
12-
13-
// Text Processing
14-
// https://tc39.es/ecma262/multipage/text-processing.html
15-
16-
interface String {
17-
isWellFormed(): boolean;
18-
toWellFormed(): string;
19-
}
20-
21-
interface RegExp {
22-
readonly unicodeSets: boolean;
23-
}
24-
25-
// Keyed Collections
26-
// https://tc39.es/ecma262/multipage/keyed-collections.html
27-
28-
interface MapConstructor {
29-
groupBy<T, K>(array: T[], callback: (item: T, index?: number) => K): Map<K, T[]>;
30-
}
31-
326
// Structured Data
337
// https://tc39.es/ecma262/multipage/structured-data.html
348

@@ -43,14 +17,3 @@ interface SharedArrayBuffer {
4317
readonly growable: boolean;
4418
readonly maxByteLength: number;
4519
}
46-
47-
// Control Abstraction Objects
48-
// https://tc39.es/ecma262/multipage/control-abstraction-objects.html
49-
50-
interface PromiseConstructor {
51-
withResolvers<T = any>(): {
52-
promise: Promise<T>;
53-
resolve: (value?: T | PromiseLike<T>) => void;
54-
reject: (reason?: any) => void;
55-
};
56-
}

w3c/compute-pressure.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ interface PressureObserver {
2929
declare var PressureObserver: {
3030
prototype: PressureObserver;
3131
new(callback: PressureUpdateCallback, options?: PressureObserverOptions): PressureObserver;
32-
readonly supportedSources: ReadonlyArray<PressureSource>;
32+
readonly knownSources: ReadonlyArray<PressureSource>;
3333
}
3434

3535
interface PressureRecord {

0 commit comments

Comments
 (0)