Skip to content

Commit b37c1dd

Browse files
Accept baselines.
1 parent 5ccedf8 commit b37c1dd

File tree

3 files changed

+29
-33
lines changed

3 files changed

+29
-33
lines changed

tests/baselines/reference/jsDocFunctionSignatures5.baseline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// pathFilter('foo', 'bar', 'baz', {});
1515
// ^
1616
// | ----------------------------------------------------------------------
17-
// | pathFilter(**basePath: string**, pattern: string, type: string, options: any): any[]
17+
// | pathFilter(**basePath: string**, pattern: string, type: string, options: Object): any[]
1818
// | Filters a path based on a regexp or glob pattern.
1919
// | @param basePath The base path where the search will be performed.
2020
// | @param pattern A string defining a regexp of a glob pattern.
@@ -190,8 +190,8 @@
190190
"kind": "space"
191191
},
192192
{
193-
"text": "any",
194-
"kind": "keyword"
193+
"text": "Object",
194+
"kind": "localName"
195195
}
196196
],
197197
"isOptional": false,

tests/baselines/reference/jsDocTypeTagQuickInfo1.baseline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
// var Obj;
6161
// ^^^
6262
// | ----------------------------------------------------------------------
63-
// | var Obj: any
63+
// | var Obj: Object
6464
// | @type {Object}
6565
// | ----------------------------------------------------------------------
6666
// /** @type {Function} */
@@ -572,8 +572,8 @@
572572
"kind": "space"
573573
},
574574
{
575-
"text": "any",
576-
"kind": "keyword"
575+
"text": "Object",
576+
"kind": "localName"
577577
}
578578
],
579579
"documentation": [],

tests/baselines/reference/jsDocTypeTagQuickInfo2.baseline

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,21 @@
4646
// var a;
4747
// ^
4848
// | ----------------------------------------------------------------------
49-
// | var a: any[]
49+
// | var a: array
5050
// | @type {array}
5151
// | ----------------------------------------------------------------------
5252
// /** @type {promise} */
5353
// var p;
5454
// ^
5555
// | ----------------------------------------------------------------------
56-
// | var p: Promise<any>
56+
// | var p: promise
5757
// | @type {promise}
5858
// | ----------------------------------------------------------------------
5959
// /** @type {?number} */
6060
// var nullable;
6161
// ^^^^^^^^
6262
// | ----------------------------------------------------------------------
63-
// | var nullable: number
63+
// | var nullable: number | null
6464
// | @type {?number}
6565
// | ----------------------------------------------------------------------
6666
// /** @type {function} */
@@ -439,16 +439,8 @@
439439
"kind": "space"
440440
},
441441
{
442-
"text": "any",
443-
"kind": "keyword"
444-
},
445-
{
446-
"text": "[",
447-
"kind": "punctuation"
448-
},
449-
{
450-
"text": "]",
451-
"kind": "punctuation"
442+
"text": "array",
443+
"kind": "text"
452444
}
453445
],
454446
"documentation": [],
@@ -500,20 +492,8 @@
500492
"kind": "space"
501493
},
502494
{
503-
"text": "Promise",
504-
"kind": "interfaceName"
505-
},
506-
{
507-
"text": "<",
508-
"kind": "punctuation"
509-
},
510-
{
511-
"text": "any",
512-
"kind": "keyword"
513-
},
514-
{
515-
"text": ">",
516-
"kind": "punctuation"
495+
"text": "promise",
496+
"kind": "text"
517497
}
518498
],
519499
"documentation": [],
@@ -567,6 +547,22 @@
567547
{
568548
"text": "number",
569549
"kind": "keyword"
550+
},
551+
{
552+
"text": " ",
553+
"kind": "space"
554+
},
555+
{
556+
"text": "|",
557+
"kind": "punctuation"
558+
},
559+
{
560+
"text": " ",
561+
"kind": "space"
562+
},
563+
{
564+
"text": "null",
565+
"kind": "keyword"
570566
}
571567
],
572568
"documentation": [],

0 commit comments

Comments
 (0)