Fix incorrect argument type on TSTypeReference (#34926)

https://babeljs.io/docs/en/babel-types#tstypereference
This commit is contained in:
Mike Marcacci
2019-04-24 12:26:29 -05:00
committed by Pranav Senthilnathan
parent 2a629ed0c2
commit 20fdb93704
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ t.TSTypeParameterDeclaration([param]);
t.TSTypeParameterInstantiation([any]);
t.TSTypePredicate(id, t.TSTypeAnnotation(any));
t.TSTypeQuery(id);
t.TSTypeReference(id);
t.TSTypeReference(id, t.TSTypeParameterInstantiation([any]));
t.TSUndefinedKeyword();
t.TSUnionType([any]);
t.TSVoidKeyword();
+1 -1
View File
@@ -1509,7 +1509,7 @@ export function TSTypeParameterDeclaration(params: TSTypeParameter[]): TSTypePar
export function TSTypeParameterInstantiation(params: TSType[]): TSTypeParameterInstantiation;
export function TSTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation: TSTypeAnnotation): TSTypePredicate;
export function TSTypeQuery(exprName: TSEntityName): TSTypeQuery;
export function TSTypeReference(typeName: TSEntityName, typeParameters?: TypeParameterInstantiation): TSTypeReference;
export function TSTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation): TSTypeReference;
export function TSUndefinedKeyword(): TSUndefinedKeyword;
export function TSUnionType(types: TSType[]): TSUnionType;
export function TSVoidKeyword(): TSVoidKeyword;