2017-02-09 21:40:08 +01:00
|
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
|
|
//@Filename: file.tsx
|
|
|
|
|
// @jsx: preserve
|
|
|
|
|
// @noLib: true
|
|
|
|
|
|
|
|
|
|
//// declare module JSX {
|
|
|
|
|
//// interface Element { }
|
|
|
|
|
//// interface IntrinsicElements {
|
|
|
|
|
//// }
|
|
|
|
|
//// interface ElementAttributesProperty { props; }
|
|
|
|
|
//// }
|
|
|
|
|
//// function /*pt1*/SFC1(prop: { x: number }) {
|
|
|
|
|
//// return <div>hello </div>;
|
|
|
|
|
//// };
|
|
|
|
|
|
|
|
|
|
//// function SFC2(prop: { x: boolean }) {
|
|
|
|
|
//// return <h1>World </h1>;
|
|
|
|
|
//// }
|
|
|
|
|
|
2018-04-24 18:41:47 +02:00
|
|
|
|
//// var /*def*/SFCComp = SFC1 || SFC2;
|
2017-10-19 00:49:46 +02:00
|
|
|
|
//// <[|SFC/*one*/Comp|] x />
|
2017-02-09 21:40:08 +01:00
|
|
|
|
|
|
|
|
|
verify.goToDefinition({
|
2018-12-20 01:35:01 +01:00
|
|
|
|
"one": ["def", "pt1"],
|
2018-04-24 18:41:47 +02:00
|
|
|
|
});
|