mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Convert HTML entities to strings (#4125)
This commit is contained in:
14
tests/baselines/reference/tsxReactEmitEntities.js
Normal file
14
tests/baselines/reference/tsxReactEmitEntities.js
Normal file
@@ -0,0 +1,14 @@
|
||||
//// [tsxReactEmitEntities.tsx]
|
||||
declare module JSX {
|
||||
interface Element { }
|
||||
interface IntrinsicElements {
|
||||
[s: string]: any;
|
||||
}
|
||||
}
|
||||
declare var React: any;
|
||||
|
||||
<div>Dot goes here: · </div>;
|
||||
|
||||
|
||||
//// [tsxReactEmitEntities.js]
|
||||
React.createElement("div", null, "Dot goes here: · ");
|
||||
21
tests/baselines/reference/tsxReactEmitEntities.symbols
Normal file
21
tests/baselines/reference/tsxReactEmitEntities.symbols
Normal file
@@ -0,0 +1,21 @@
|
||||
=== tests/cases/conformance/jsx/tsxReactEmitEntities.tsx ===
|
||||
declare module JSX {
|
||||
>JSX : Symbol(JSX, Decl(tsxReactEmitEntities.tsx, 0, 0))
|
||||
|
||||
interface Element { }
|
||||
>Element : Symbol(Element, Decl(tsxReactEmitEntities.tsx, 0, 20))
|
||||
|
||||
interface IntrinsicElements {
|
||||
>IntrinsicElements : Symbol(IntrinsicElements, Decl(tsxReactEmitEntities.tsx, 1, 22))
|
||||
|
||||
[s: string]: any;
|
||||
>s : Symbol(s, Decl(tsxReactEmitEntities.tsx, 3, 3))
|
||||
}
|
||||
}
|
||||
declare var React: any;
|
||||
>React : Symbol(React, Decl(tsxReactEmitEntities.tsx, 6, 11))
|
||||
|
||||
<div>Dot goes here: · </div>;
|
||||
>div : Symbol(JSX.IntrinsicElements, Decl(tsxReactEmitEntities.tsx, 1, 22))
|
||||
>div : Symbol(JSX.IntrinsicElements, Decl(tsxReactEmitEntities.tsx, 1, 22))
|
||||
|
||||
22
tests/baselines/reference/tsxReactEmitEntities.types
Normal file
22
tests/baselines/reference/tsxReactEmitEntities.types
Normal file
@@ -0,0 +1,22 @@
|
||||
=== tests/cases/conformance/jsx/tsxReactEmitEntities.tsx ===
|
||||
declare module JSX {
|
||||
>JSX : any
|
||||
|
||||
interface Element { }
|
||||
>Element : Element
|
||||
|
||||
interface IntrinsicElements {
|
||||
>IntrinsicElements : IntrinsicElements
|
||||
|
||||
[s: string]: any;
|
||||
>s : string
|
||||
}
|
||||
}
|
||||
declare var React: any;
|
||||
>React : any
|
||||
|
||||
<div>Dot goes here: · </div>;
|
||||
><div>Dot goes here: · </div> : JSX.Element
|
||||
>div : any
|
||||
>div : any
|
||||
|
||||
Reference in New Issue
Block a user