50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
=== tests/cases/conformance/jsx/react.d.ts ===
|
|
|
|
declare module 'react' {
|
|
class Component<T, U> { }
|
|
>Component : Symbol(Component, Decl(react.d.ts, 1, 24))
|
|
>T : Symbol(T, Decl(react.d.ts, 2, 17))
|
|
>U : Symbol(U, Decl(react.d.ts, 2, 19))
|
|
}
|
|
|
|
=== tests/cases/conformance/jsx/app.tsx ===
|
|
import * as React from 'react';
|
|
>React : Symbol(React, Decl(app.tsx, 0, 6))
|
|
|
|
// Should see var button_1 = require('./button') here
|
|
import { Button } from './button';
|
|
>Button : Symbol(Button, Decl(app.tsx, 3, 8))
|
|
|
|
export class App extends React.Component<any, any> {
|
|
>App : Symbol(App, Decl(app.tsx, 3, 34))
|
|
>React.Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))
|
|
>React : Symbol(React, Decl(app.tsx, 0, 6))
|
|
>Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))
|
|
|
|
render() {
|
|
>render : Symbol(render, Decl(app.tsx, 5, 52))
|
|
|
|
return <Button />;
|
|
>Button : Symbol(Button, Decl(app.tsx, 3, 8))
|
|
}
|
|
|
|
}
|
|
|
|
=== tests/cases/conformance/jsx/button.tsx ===
|
|
import * as React from 'react';
|
|
>React : Symbol(React, Decl(button.tsx, 0, 6))
|
|
|
|
export class Button extends React.Component<any, any> {
|
|
>Button : Symbol(Button, Decl(button.tsx, 0, 31))
|
|
>React.Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))
|
|
>React : Symbol(React, Decl(button.tsx, 0, 6))
|
|
>Component : Symbol(React.Component, Decl(react.d.ts, 1, 24))
|
|
|
|
render() {
|
|
>render : Symbol(render, Decl(button.tsx, 2, 55))
|
|
|
|
return <button>Some button</button>;
|
|
}
|
|
|
|
}
|