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.
23 lines
521 B
TypeScript
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"
|
|
});
|