Skip to content

Commit

Permalink
0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminAster committed Jul 12, 2024
1 parent fb1459e commit 64eb9b1
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 59 deletions.
13 changes: 2 additions & 11 deletions csswg/contain.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,8 @@
// Specification: https://drafts.csswg.org/css-contain-2/
// Repository: https://github.com/w3c/csswg-drafts/tree/main/css-contain-2

declare class ContentVisibilityAutoStateChangedEvent extends Event {
constructor(type: string, eventInitDict?: ContentVisibilityAutoStateChangedEventInit);
readonly skipped: boolean;
}

declare var oncontentvisibilityautostatechanged: ContentVisibilityAutoStateChangedEvent | null;
declare var oncontentvisibilityautostatechange: ContentVisibilityAutoStateChangeEvent | null;

interface GlobalEventHandlersEventMap {
"contentvisibilityautostatechanged": ContentVisibilityAutoStateChangedEvent;
}

interface ContentVisibilityAutoStateChangedEventInit extends EventInit {
skipped?: boolean;
"contentvisibilityautostatechange": ContentVisibilityAutoStateChangeEvent;
}
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

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

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

/// <reference path="./w3c/ambient-light.d.ts" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new-javascript",
"version": "0.4.3",
"version": "0.4.4",
"description": "TypeScript type definitions for new JavaScript stuff that isn't yet in TypeScript's standard type definitions",
"main": "./index.d.ts",
"repository": {
Expand Down
8 changes: 0 additions & 8 deletions tc39/array-from-async.d.ts

This file was deleted.

37 changes: 0 additions & 37 deletions tc39/esnext.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,6 @@
// Specification: https://tc39.es/ecma262/multipage/
// Repository: https://github.com/tc39/ecma262

// Fundamental Objects
// https://tc39.es/ecma262/multipage/fundamental-objects.html

interface ObjectConstructor {
groupBy<T>(array: T[], callback: (item: T, index?: number) => string): Record<string, T[]>;
}

// Text Processing
// https://tc39.es/ecma262/multipage/text-processing.html

interface String {
isWellFormed(): boolean;
toWellFormed(): string;
}

interface RegExp {
readonly unicodeSets: boolean;
}

// Keyed Collections
// https://tc39.es/ecma262/multipage/keyed-collections.html

interface MapConstructor {
groupBy<T, K>(array: T[], callback: (item: T, index?: number) => K): Map<K, T[]>;
}

// Structured Data
// https://tc39.es/ecma262/multipage/structured-data.html

Expand All @@ -43,14 +17,3 @@ interface SharedArrayBuffer {
readonly growable: boolean;
readonly maxByteLength: number;
}

// Control Abstraction Objects
// https://tc39.es/ecma262/multipage/control-abstraction-objects.html

interface PromiseConstructor {
withResolvers<T = any>(): {
promise: Promise<T>;
resolve: (value?: T | PromiseLike<T>) => void;
reject: (reason?: any) => void;
};
}
2 changes: 1 addition & 1 deletion w3c/compute-pressure.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ interface PressureObserver {
declare var PressureObserver: {
prototype: PressureObserver;
new(callback: PressureUpdateCallback, options?: PressureObserverOptions): PressureObserver;
readonly supportedSources: ReadonlyArray<PressureSource>;
readonly knownSources: ReadonlyArray<PressureSource>;
}

interface PressureRecord {
Expand Down

0 comments on commit 64eb9b1

Please sign in to comment.