45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
=== tests/cases/compiler/consumer.tsx ===
|
|
/// <reference path="component.d.ts" />
|
|
import BaseComponent from 'BaseComponent';
|
|
>BaseComponent : Symbol(BaseComponent, Decl(consumer.tsx, 1, 6))
|
|
|
|
class TestComponent extends React.Component<any, {}> {
|
|
>TestComponent : Symbol(TestComponent, Decl(consumer.tsx, 1, 42))
|
|
>React.Component : Symbol(React.Component, Decl(component.d.ts, 4, 22))
|
|
>React : Symbol(React, Decl(component.d.ts, 3, 1))
|
|
>Component : Symbol(React.Component, Decl(component.d.ts, 4, 22))
|
|
|
|
render() {
|
|
>render : Symbol(TestComponent.render, Decl(consumer.tsx, 2, 54))
|
|
|
|
return <BaseComponent />;
|
|
>BaseComponent : Symbol(BaseComponent, Decl(consumer.tsx, 1, 6))
|
|
}
|
|
}
|
|
|
|
=== tests/cases/compiler/component.d.ts ===
|
|
|
|
declare module JSX {
|
|
>JSX : Symbol(JSX, Decl(component.d.ts, 0, 0))
|
|
|
|
interface ElementAttributesProperty { props; }
|
|
>ElementAttributesProperty : Symbol(ElementAttributesProperty, Decl(component.d.ts, 1, 20))
|
|
>props : Symbol(ElementAttributesProperty.props, Decl(component.d.ts, 2, 39))
|
|
}
|
|
declare module React {
|
|
>React : Symbol(React, Decl(component.d.ts, 3, 1))
|
|
|
|
class Component<T, U> { }
|
|
>Component : Symbol(Component, Decl(component.d.ts, 4, 22))
|
|
>T : Symbol(T, Decl(component.d.ts, 5, 18))
|
|
>U : Symbol(U, Decl(component.d.ts, 5, 20))
|
|
}
|
|
declare module "BaseComponent" {
|
|
export default class extends React.Component<any, {}> {
|
|
>React.Component : Symbol(React.Component, Decl(component.d.ts, 4, 22))
|
|
>React : Symbol(React, Decl(component.d.ts, 3, 1))
|
|
>Component : Symbol(React.Component, Decl(component.d.ts, 4, 22))
|
|
}
|
|
}
|
|
|