You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,7 +121,7 @@ function myFunc (parameter: number [] []) {
121
121
122
122
### type-parameter-spacing
123
123
124
-
This rule enforces correct spacing between an identifier and type parameters. This works for functions, function declarations, interfaces, type aliases, and classes.
124
+
This rule enforces correct spacing between an identifier and type parameters.
125
125
126
126
🔧 The `--fix` option on the command line can automatically fix the problems reported by this rule.
127
127
@@ -148,6 +148,8 @@ function generic <TType> (parameter: TType) {
148
148
interfaceGeneric <TType> {
149
149
value:TType,
150
150
}
151
+
152
+
const value:GenericType <number>;
151
153
~~~
152
154
153
155
👍 Examples of **correct** code for this rule:
@@ -160,6 +162,8 @@ function generic<TType> (parameter: TType) {
160
162
interfaceGeneric<TType> {
161
163
value:TType,
162
164
}
165
+
166
+
const value:GenericType<number>;
163
167
~~~
164
168
165
169
**always:**
@@ -174,6 +178,8 @@ function generic<TType> (parameter: TType) {
174
178
interfaceGeneric<TType> {
175
179
value:TType,
176
180
}
181
+
182
+
const value:GenericType<number>;
177
183
~~~
178
184
179
185
👍 Examples of **correct** code for this rule:
@@ -186,4 +192,6 @@ function generic <TType> (parameter: TType) {
0 commit comments