File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
import _ from 'lodash' ;
2
- import { jsdocTags , closureTags } from './tagNames' ;
2
+ import { closureTags } from './tagNames' ;
3
3
4
4
// Todo: Distinguish closure tags
5
- const tagNames = {
6
- ...closureTags ,
7
- ...jsdocTags ,
8
- } ;
5
+ const tagNames = closureTags ;
9
6
10
7
const getFunctionParameterNames = ( functionNode : Object ) : Array < string > => {
11
8
const getParamName = ( param ) => {
Original file line number Diff line number Diff line change @@ -114,14 +114,16 @@ const jsdocTags = {
114
114
] ,
115
115
} ;
116
116
117
- const TypeScriptTags = {
117
+ const typeScriptTags = {
118
+ ...jsdocTags ,
119
+
118
120
// `@template` is also in TypeScript per:
119
121
// https://www.typescriptlang.org/docs/handbook/type-checking-javascript-files.html#supported-jsdoc
120
122
template : [ ] ,
121
123
} ;
122
124
123
125
const closureTags = {
124
- ...TypeScriptTags ,
126
+ ...typeScriptTags ,
125
127
126
128
// From https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Closure-Compiler
127
129
// These are all recognized in https://github.com/jsdoc/jsdoc/blob/master/packages/jsdoc/lib/jsdoc/tag/dictionary/definitions.js
@@ -155,4 +157,4 @@ const closureTags = {
155
157
unrestricted : [ ] ,
156
158
} ;
157
159
158
- export { jsdocTags , closureTags } ;
160
+ export { jsdocTags , closureTags , typeScriptTags } ;
You can’t perform that action at this time.
0 commit comments