TypeScript/tests/cases/fourslash/incorrectJsDocObjectLiteralType.ts
Andy efc1b7df08
More thoroughly test navigateTo (#25239)
* More thoroughly test navigateTo

* Fix #25233 and #25237

* Update API (#24966)
2018-07-02 19:25:27 -07:00

19 lines
485 B
TypeScript

///<reference path="fourslash.ts" />
// @Filename: /a.ts
////
verify.navigateTo({ pattern: "", expected: [] });
edit.insert("/**\n * @typedef {Object} foo\n * @property {any} [obj]\n */\nexport default function foo() {\n}");
verify.navigateTo({
pattern: "foo",
expected: [
{
name: "foo",
kind: "function",
kindModifiers: "export",
range: { fileName: "/a.ts", pos: 58, end: 91 },
},
],
});