Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defer union or intersection property type normalization (#31486)
* Defer union or intersection property type normalization * Accept moved span
- Loading branch information
Showing
15 changed files
with
474 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/baselines/reference/reactTagNameComponentWithPropsNoOOM.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
//// [reactTagNameComponentWithPropsNoOOM.tsx] | ||
/// <reference path="/.lib/react16.d.ts" /> | ||
|
||
import * as React from "react"; | ||
declare const Tag: keyof React.ReactHTML; | ||
|
||
const classes = ""; | ||
const rest: {} = {}; | ||
const children: any[] = []; | ||
<Tag className={classes} {...rest}> | ||
{children} | ||
</Tag> | ||
|
||
//// [reactTagNameComponentWithPropsNoOOM.js] | ||
"use strict"; | ||
/// <reference path="react16.d.ts" /> | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
exports.__esModule = true; | ||
var React = require("react"); | ||
var classes = ""; | ||
var rest = {}; | ||
var children = []; | ||
React.createElement(Tag, __assign({ className: classes }, rest), children); |
32 changes: 32 additions & 0 deletions
32
tests/baselines/reference/reactTagNameComponentWithPropsNoOOM.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
=== tests/cases/compiler/reactTagNameComponentWithPropsNoOOM.tsx === | ||
/// <reference path="react16.d.ts" /> | ||
|
||
import * as React from "react"; | ||
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 2, 6)) | ||
|
||
declare const Tag: keyof React.ReactHTML; | ||
>Tag : Symbol(Tag, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 3, 13)) | ||
>React : Symbol(React, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 2, 6)) | ||
>ReactHTML : Symbol(React.ReactHTML, Decl(react16.d.ts, 2089, 9)) | ||
|
||
const classes = ""; | ||
>classes : Symbol(classes, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 5, 5)) | ||
|
||
const rest: {} = {}; | ||
>rest : Symbol(rest, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 6, 5)) | ||
|
||
const children: any[] = []; | ||
>children : Symbol(children, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 7, 5)) | ||
|
||
<Tag className={classes} {...rest}> | ||
>Tag : Symbol(Tag, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 3, 13)) | ||
>className : Symbol(className, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 8, 4)) | ||
>classes : Symbol(classes, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 5, 5)) | ||
>rest : Symbol(rest, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 6, 5)) | ||
|
||
{children} | ||
>children : Symbol(children, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 7, 5)) | ||
|
||
</Tag> | ||
>Tag : Symbol(Tag, Decl(reactTagNameComponentWithPropsNoOOM.tsx, 3, 13)) | ||
|
Oops, something went wrong.