From 20fdb9370434e7a0aa977290c7286dabb0715e0d Mon Sep 17 00:00:00 2001 From: Mike Marcacci Date: Wed, 24 Apr 2019 10:26:29 -0700 Subject: [PATCH] Fix incorrect argument type on TSTypeReference (#34926) https://babeljs.io/docs/en/babel-types#tstypereference --- types/babel-types/babel-types-tests.ts | 2 +- types/babel-types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;