Skip to content

Commit 19270ba

Browse files
committed
[experiment] merge iterable decls in DOM
1 parent 6cf8170 commit 19270ba

25 files changed

+436
-1309
lines changed

src/lib/dom.generated.d.ts

Lines changed: 243 additions & 768 deletions
Large diffs are not rendered by default.

src/lib/webworker.generated.d.ts

Lines changed: 161 additions & 509 deletions
Large diffs are not rendered by default.

tests/baselines/reference/checkJsxChildrenCanBeTupleType.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== checkJsxChildrenCanBeTupleType.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/contextualOverloadListFromArrayUnion.types

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ const resizeObserver = new ResizeObserver(([entry]) => {
7878
> : ^^^^^^^^^^^^^^
7979
>ResizeObserver : { new (callback: globalThis.ResizeObserverCallback): ResizeObserver; prototype: ResizeObserver; }
8080
> : ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^
81-
>([entry]) => { entry} : ([entry]: ResizeObserverEntry[]) => void
82-
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81+
>([entry]) => { entry} : ([entry]: Iterable<ResizeObserverEntry>) => void
82+
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8383
>entry : ResizeObserverEntry
8484
> : ^^^^^^^^^^^^^^^^^^^
8585

tests/baselines/reference/contextuallyTypedJsxChildren.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== contextuallyTypedJsxChildren.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/divergentAccessorsTypes6.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface Element {
88

99
get style(): CSSStyleDeclaration;
1010
>style : Symbol(Element.style, Decl(divergentAccessorsTypes6.ts, 2, 19), Decl(divergentAccessorsTypes6.ts, 3, 37))
11-
>CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
11+
>CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
1212

1313
set style(cssText: string);
1414
>style : Symbol(Element.style, Decl(divergentAccessorsTypes6.ts, 2, 19), Decl(divergentAccessorsTypes6.ts, 3, 37))

tests/baselines/reference/divergentAccessorsTypes8.symbols

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface Element {
3939

4040
get style(): CSSStyleDeclaration;
4141
>style : Symbol(Element.style, Decl(divergentAccessorsTypes8.ts, 12, 19), Decl(divergentAccessorsTypes8.ts, 13, 37))
42-
>CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
42+
>CSSStyleDeclaration : Symbol(CSSStyleDeclaration, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --))
4343

4444
set style(cssText: string);
4545
>style : Symbol(Element.style, Decl(divergentAccessorsTypes8.ts, 12, 19), Decl(divergentAccessorsTypes8.ts, 13, 37))

tests/baselines/reference/jsxElementType.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Assignability cache: 2,500 -> 5,000
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== jsxElementType.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/jsxFragmentFactoryNoUnusedLocals.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 50,000 -> 100,000
7+
Symbol count: 50,000
88

99
=== jsxFragmentFactoryNoUnusedLocals.tsx ===
1010
/// <reference path="react16.d.ts" />

tests/baselines/reference/jsxJsxsCjsTransformNestedSelfClosingChild(jsx=react-jsx).types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Assignability cache: 2,500
55
Type Count: 10,000
66
Instantiation count: 100,000
7-
Symbol count: 100,000
7+
Symbol count: 50,000
88

99
=== jsxJsxsCjsTransformNestedSelfClosingChild.tsx ===
1010
/// <reference path="react16.d.ts" />

0 commit comments

Comments
 (0)