Skip to content

Commit 9258aaa

Browse files
committed
0.3.10
1 parent 48996af commit 9258aaa

14 files changed

Lines changed: 68 additions & 82 deletions

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# TypeScript types for new JavaScript
33

4-
This repository contains TypeScript type definitions for a lot of new JavaScript stuff that isn't yet in TypeScript's standard type definitions (see below for [the complete list](#specifications-in-this-repository)). These range from the [File System Access API](https://wicg.github.io/file-system-access/) over [View Transitions](https://drafts.csswg.org/css-view-transitions-1/) to [Houdini CSS Typed OM](https://drafts.css-houdini.org/css-typed-om/) or [Handwriting Recognition](https://wicg.github.io/handwriting-recognition/). Some specifications have only partially been integrated into TypeScript's standard type declarations, in which case this repository contains only the parts of the specifications that aren't there (yet). For most specifications I have used [WebIDL2TS](https://github.com/giniedp/webidl2ts), a tool that automatically converts [WebIDL](https://webidl.spec.whatwg.org/) to TypeScript type definitions, and manually edited the stuff where it didn't generate the desired result.
4+
This repository contains TypeScript type definitions for a lot of new JavaScript stuff that isn't yet in TypeScript's standard type definitions (see below for [the complete list](#specifications-in-this-repository)). These range from the [File System Access API](https://wicg.github.io/file-system-access/) over [View Transitions](https://drafts.csswg.org/css-view-transitions-1/) to [View Transitions](https://drafts.csswg.org/css-view-transitions-1/) or [Handwriting Recognition](https://wicg.github.io/handwriting-recognition/). Some specifications have only partially been integrated into TypeScript's standard type declarations, in which case this repository contains only the parts of the specifications that aren't there (yet). For most specifications I have used [WebIDL2TS](https://github.com/giniedp/webidl2ts), a tool that automatically converts [WebIDL](https://webidl.spec.whatwg.org/) to TypeScript type definitions, and manually edited the stuff where it didn't generate the desired result.
55

66
Also take a look [Better-TypeScript](https://github.com/BenjaminAster/Better-TypeScript), which contains various TypeScript type definitions to make working with TypeScript more convenient.
77

@@ -94,7 +94,6 @@ The type declarations in this repository include the following specifications (g
9494
- [Requesting Permissions](https://wicg.github.io/permissions-request/)
9595
- [Relinquishing Permissions](https://wicg.github.io/permissions-revoke/)
9696
- [Portals](https://wicg.github.io/portals/)
97-
- [Sanitizer API](https://wicg.github.io/sanitizer-api/)
9897
- [Save Data API](https://wicg.github.io/savedata/)
9998
- [Shape Detection API](https://wicg.github.io/shape-detection-api/)
10099
- [Speech API](https://wicg.github.io/speech-api/)
@@ -144,4 +143,3 @@ The type declarations in this repository include the following specifications (g
144143
- [Array.fromAsync](https://tc39.es/proposal-array-from-async/)
145144
- [Array Grouping](https://tc39.es/proposal-array-grouping/)
146145
- [ECMAScript Language Specification](https://tc39.es/ecma262/)
147-
- [Import Attributes](https://tc39.es/proposal-import-attributes/)

csswg/cssom.d.ts

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
// Specification: https://drafts.csswg.org/cssom-1/
44
// Repository: https://github.com/w3c/csswg-drafts/tree/main/cssom-1
55

6-
// This file is auto-generated from CSSWG's CSS properties index (https://drafts.csswg.org/indexes/#properties).
6+
// This file is auto-generated from my CSS properties index (http://localhost/webindex/css.html).
77
// The properties already in TypeScript's standard type declarations were removed.
88

99
interface CSSStyleDeclaration {
10-
alignTracks: string;
1110
anchorDefault: string;
1211
anchorName: string;
1312
animationRange: string;
@@ -27,21 +26,43 @@ interface CSSStyleDeclaration {
2726
bookmarkLabel: string;
2827
bookmarkLevel: string;
2928
bookmarkState: string;
29+
borderBlockEndRadius: string;
30+
borderBlockStartRadius: string;
31+
borderBottomRadius: string;
3032
borderBoundary: string;
33+
borderClip: string;
34+
borderClipBottom: string;
35+
borderClipLeft: string;
36+
borderClipRight: string;
37+
borderClipTop: string;
38+
borderInlineEndRadius: string;
39+
borderInlineStartRadius: string;
40+
borderLeftRadius: string;
41+
borderLimit: string;
42+
borderRightRadius: string;
43+
borderTopRadius: string;
3144
boxDecorationBreak: string;
45+
boxShadowBlur: string;
46+
boxShadowColor: string;
47+
boxShadowOffset: string;
48+
boxShadowPosition: string;
49+
boxShadowSpread: string;
3250
boxSnap: string;
3351
caret: string;
3452
caretShape: string;
3553
colorAdjust: string;
3654
contentVisibility: string;
3755
continue: string;
3856
copyInto: string;
57+
cornerShape: string;
58+
corners: string;
3959
cue: string;
4060
cueAfter: string;
4161
cueBefore: string;
4262
cx: string;
4363
cy: string;
4464
d: string;
65+
fieldSizing: string;
4566
fillBreak: string;
4667
fillColor: string;
4768
fillImage: string;
@@ -55,6 +76,7 @@ interface CSSStyleDeclaration {
5576
flowFrom: string;
5677
flowInto: string;
5778
fontLanguageOverride: string;
79+
fontSynthesisPosition: string;
5880
fontVariantEmoji: string;
5981
footnoteDisplay: string;
6082
footnotePolicy: string;
@@ -70,7 +92,7 @@ interface CSSStyleDeclaration {
7092
initialLetterWrap: string;
7193
inlineSizing: string;
7294
inputSecurity: string;
73-
justifyTracks: string;
95+
insetArea: string;
7496
layoutOrder: string;
7597
lineClamp: string;
7698
lineGrid: string;
@@ -181,6 +203,8 @@ interface CSSStyleDeclaration {
181203
textSpacing: string;
182204
textSpacingTrim: string;
183205
textWrap: string;
206+
textWrapMode: string;
207+
textWrapStyle: string;
184208
timelineScope: string;
185209
toggle: string;
186210
toggleGroup: string;
@@ -202,10 +226,11 @@ interface CSSStyleDeclaration {
202226
voiceRate: string;
203227
voiceStress: string;
204228
voiceVolume: string;
229+
webkitAppRegion: string;
230+
webkitTextSecurity: string;
205231
whiteSpaceCollapse: string;
206232
whiteSpaceTrim: string;
207-
wordBoundaryDetection: string;
208-
wordBoundaryExpansion: string;
233+
wordSpaceTransform: string;
209234
wrapAfter: string;
210235
wrapBefore: string;
211236
wrapFlow: string;

index.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
/// <reference path="./privacycg/global-privacy-control.d.ts" />
2121

2222
/// <reference path="./tc39/array-from-async.d.ts" />
23-
/// <reference path="./tc39/array-grouping.d.ts" />
2423
/// <reference path="./tc39/esnext.d.ts" />
25-
/// <reference path="./tc39/import-attributes.d.ts" />
2624

2725
/// <reference path="./w3c/ambient-light.d.ts" />
2826
/// <reference path="./w3c/battery.d.ts" />
@@ -70,7 +68,6 @@
7068
/// <reference path="./wicg/permissions-request.d.ts" />
7169
/// <reference path="./wicg/permissions-revoke.d.ts" />
7270
/// <reference path="./wicg/portals.d.ts" />
73-
/// <reference path="./wicg/sanitizer.d.ts" />
7471
/// <reference path="./wicg/save-data.d.ts" />
7572
/// <reference path="./wicg/shape-detection.d.ts" />
7673
/// <reference path="./wicg/speech.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.3.9",
3+
"version": "0.3.10",
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
// Repository: https://github.com/tc39/proposal-array-from-async
55

66
interface ArrayConstructor {
7-
fromAsync<T>(asyncIterable: AsyncIterable<T>): Promise<T[]>;
7+
fromAsync<T>(asyncIterable: AsyncIterable<T> | Iterable<T>): Promise<T[]>;
88
}

tc39/array-grouping.d.ts

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

tc39/esnext.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,14 @@
33
// Specification: https://tc39.es/ecma262/
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+
interface MapConstructor {
14+
groupBy<T, K>(array: T[], callback: (item: T, index?: number) => K): Map<K, T[]>;
15+
}
16+

tc39/import-attributes.d.ts

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

test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ navigator.permissions.query({
4949
name: "local-fonts"
5050
})
5151

52+
Object.groupBy;
53+
54+
import.meta.url
55+
import.meta.resolve
56+
5257
// const alsjdf = Object.freeze([3]);
5358

5459

whatwg/html.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ImportMeta {
1818
}
1919

2020
// Not-yet-standardized timezonechange event
21-
// https://github.com/whatwg/html/pull/3047, https://docs.google.com/document/d/1gu-HAVIjVxfPQEE0uQg9Y4tJwYl33Y54DKTA9hfDyic/view
21+
// https://github.com/whatwg/html/pull/3047, https://docs.google.com/document/d/1gu-HAVIjVxfPQEE0uQg9Y4tJwYl33Y54DKTA9hfDyic/preview
2222

2323
interface WindowEventHandlersEventMap {
2424
"timezonechange": Event;

0 commit comments

Comments
 (0)