22 lines
365 B
Plaintext
22 lines
365 B
Plaintext
=== tests/cases/compiler/index.tsx ===
|
|
/// <reference path="react16.d.ts" />
|
|
|
|
import React from "react";
|
|
>React : typeof React
|
|
|
|
function Bar() {
|
|
>Bar : () => JSX.Element
|
|
|
|
return <div />;
|
|
><div /> : JSX.Element
|
|
>div : any
|
|
}
|
|
|
|
export function Foo() {
|
|
>Foo : () => JSX.Element
|
|
|
|
return <Bar />;
|
|
><Bar /> : JSX.Element
|
|
>Bar : () => JSX.Element
|
|
}
|