TypeScript/tests/cases/fourslash/tsxRename3.ts
2019-06-13 12:41:21 -07:00

20 lines
515 B
TypeScript

/// <reference path='fourslash.ts' />
//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
//// }
//// interface ElementAttributesProperty { props }
//// }
//// class MyClass {
//// props: {
//// [|[|{| "contextRangeIndex": 0 |}name|]?: string;|]
//// size?: number;
//// }
////
////
//// var x = <MyClass [|[|{| "contextRangeIndex": 2 |}name|]='hello'|]/>;
verify.rangesWithSameTextAreRenameLocations("name");