TypeScript/tests/cases/fourslash/tsxGoToDefinitionIntrinsics.ts
Andy Hanson c75f6d0ec7 Add multiple overloads for verify.goToDefinition.
Use explicit pairs `verify.goToDefinition([["a", "b"], ["c", "d"]])` instead of `verify.goToDefinition("a", "b", "c", "d")`.
Also provide an option `verify.goToDefinition({ a: "b", c: "d" })` for cases where the starts are not theirselves lists.
2016-09-02 13:23:45 -07:00

23 lines
521 B
TypeScript

/// <reference path='fourslash.ts' />
//@Filename: file.tsx
//// declare module JSX {
//// interface Element { }
//// interface IntrinsicElements {
//// /*dt*/div: {
//// /*pt*/name?: string;
//// isOpen?: boolean;
//// };
//// /*st*/span: { n: string; };
//// }
//// }
//// var x = <di/*ds*/v />;
//// var y = <s/*ss*/pan />;
//// var z = <div na/*ps*/me='hello' />;
verify.goToDefinition({
ds: "dt",
ss: "st",
ps: "pt"
});