File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,16 @@ module.exports = {
246
246
&& component . node . parent . id . type === 'Identifier'
247
247
&& component . node . parent . id . typeAnnotation
248
248
&& component . node . parent . id . typeAnnotation . typeAnnotation
249
- && component . node . parent . id . typeAnnotation . typeAnnotation . typeParameters
250
249
&& (
251
- component . node . parent . id . typeAnnotation . typeAnnotation . typeParameters . type === 'TSTypeParameterInstantiation'
250
+ ( component . node . parent . id . typeAnnotation . typeAnnotation . typeArguments
251
+ && (
252
+ component . node . parent . id . typeAnnotation . typeAnnotation . typeArguments . type === 'TSTypeParameterInstantiation'
253
+ || component . node . parent . id . typeAnnotation . typeAnnotation . typeArguments . type === 'TypeParameterInstantiation'
254
+ ) )
255
+ || ( component . node . parent . id . typeAnnotation . typeAnnotation . typeParameters
256
+ && ( component . node . parent . id . typeAnnotation . typeAnnotation . typeParameters . type === 'TSTypeParameterInstantiation'
252
257
|| component . node . parent . id . typeAnnotation . typeAnnotation . typeParameters . type === 'TypeParameterInstantiation'
258
+ ) )
253
259
)
254
260
) {
255
261
return component . node . parent . id . typeAnnotation . typeAnnotation . typeParameters . params . find (
You can’t perform that action at this time.
0 commit comments