Merge pull request #9140 from Microsoft/navbar_jsdoc
Add test for jsdoc in navigation bar
This commit is contained in:
commit
29b1e796c3
21
tests/cases/fourslash/navigationBarJsDoc.ts
Normal file
21
tests/cases/fourslash/navigationBarJsDoc.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
/// <reference path="fourslash.ts"/>
|
||||
|
||||
// @Filename: foo.js
|
||||
/////** @typedef {(number|string)} NumberLike */
|
||||
/////** @typedef {(string|number)} */
|
||||
////const x = 0;
|
||||
|
||||
verify.navigationBar([
|
||||
{
|
||||
"text": "NumberLike",
|
||||
"kind": "type"
|
||||
},
|
||||
{
|
||||
"text": "x",
|
||||
"kind": "type"
|
||||
},
|
||||
{
|
||||
"text": "x",
|
||||
"kind": "var"
|
||||
}
|
||||
]);
|
Loading…
Reference in a new issue