diff --git a/types/babel-types/babel-types-tests.ts b/types/babel-types/babel-types-tests.ts index 921608924c..94e962b2f5 100644 --- a/types/babel-types/babel-types-tests.ts +++ b/types/babel-types/babel-types-tests.ts @@ -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(); diff --git a/types/babel-types/index.d.ts b/types/babel-types/index.d.ts index f0d781a7ed..8985f0ea71 100644 --- a/types/babel-types/index.d.ts +++ b/types/babel-types/index.d.ts @@ -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;