TypeScript/tests/cases/fourslash/tsxFindAllReferences1.ts

21 lines
600 B
TypeScript
Raw Normal View History

2016-11-08 20:07:17 +01:00
/// <reference path='fourslash.ts' />
//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
2019-06-13 21:25:02 +02:00
//// [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}div|]: {
2016-11-08 20:07:17 +01:00
//// name?: string;
//// isOpen?: boolean;
2019-05-30 22:17:57 +02:00
//// };|]
2016-11-08 20:07:17 +01:00
//// span: { n: string; };
//// }
//// }
2019-06-13 21:25:02 +02:00
//// var x = [|<[|{| "contextRangeIndex": 2 |}div|] />|];
2016-11-08 20:07:17 +01:00
2019-05-30 22:17:57 +02:00
verify.singleReferenceGroup(
`(property) JSX.IntrinsicElements.div: {
name?: string;
isOpen?: boolean;
}`, "div");