@@ -17,13 +17,6 @@ interface StringLiteral<Value extends string = string>
17
17
*
18
18
* If a `value` is provided & the `node` is a `StringLiteral`,
19
19
* the `value` will be compared to that of the `StringLiteral`.
20
- *
21
- * @param {Node } node
22
- * @param {V } [value]
23
- *
24
- * @return {node is StringLiteral<V> }
25
- *
26
- * @template V
27
20
*/
28
21
const isStringLiteral = < V extends string > (
29
22
node : TSESTree . Node ,
@@ -45,13 +38,6 @@ interface TemplateLiteral<Value extends string = string>
45
38
*
46
39
* If a `value` is provided & the `node` is a `TemplateLiteral`,
47
40
* the `value` will be compared to that of the `TemplateLiteral`.
48
- *
49
- * @param {Node } node
50
- * @param {V } [value]
51
- *
52
- * @return {node is TemplateLiteral<V> }
53
- *
54
- * @template V
55
41
*/
56
42
const isTemplateLiteral = < V extends string > (
57
43
node : TSESTree . Node ,
@@ -67,13 +53,6 @@ export type StringNode<S extends string = string> =
67
53
68
54
/**
69
55
* Checks if the given `node` is a {@link StringNode}.
70
- *
71
- * @param {Node } node
72
- * @param {V } [specifics]
73
- *
74
- * @return {node is StringNode }
75
- *
76
- * @template V
77
56
*/
78
57
export const isStringNode = < V extends string > (
79
58
node : TSESTree . Node ,
@@ -86,12 +65,6 @@ export const isStringNode = <V extends string>(
86
65
*
87
66
* If the `node` is a `TemplateLiteral`, the `raw` value is used;
88
67
* otherwise, `value` is returned instead.
89
- *
90
- * @param {StringNode<S> } node
91
- *
92
- * @return {S }
93
- *
94
- * @template S
95
68
*/
96
69
export const getStringValue = < S extends string > ( node : StringNode < S > ) : S =>
97
70
isTemplateLiteral ( node ) ? node . quasis [ 0 ] . value . raw : node . value ;
@@ -108,13 +81,6 @@ interface KnownIdentifier<Name extends string> extends TSESTree.Identifier {
108
81
*
109
82
* If a `name` is provided, & the `node` is an `Identifier`,
110
83
* the `name` will be compared to that of the `identifier`.
111
- *
112
- * @param {Node } node
113
- * @param {V } [name]
114
- *
115
- * @return {node is KnownIdentifier<Name> }
116
- *
117
- * @template V
118
84
*/
119
85
export const isIdentifier = < V extends string > (
120
86
node : TSESTree . Node ,
@@ -136,13 +102,6 @@ export const isIdentifier = <V extends string>(
136
102
*
137
103
* Note that `value` here refers to the normalised value.
138
104
* The property that holds the value is not always called `name`.
139
- *
140
- * @param {Node } node
141
- * @param {V } [value]
142
- *
143
- * @return {node is AccessorNode<V> }
144
- *
145
- * @template V
146
105
*/
147
106
export const isSupportedAccessor = < V extends string > (
148
107
node : TSESTree . Node ,
@@ -153,12 +112,6 @@ export const isSupportedAccessor = <V extends string>(
153
112
/**
154
113
* Gets the value of the given `AccessorNode`,
155
114
* account for the different node types.
156
- *
157
- * @param {AccessorNode<S> } accessor
158
- *
159
- * @return {S }
160
- *
161
- * @template S
162
115
*/
163
116
export const getAccessorValue = < S extends string = string > (
164
117
accessor : AccessorNode < S >
0 commit comments