use getBaseTypeOfLiteralType

This commit is contained in:
Arthur Ozga
2017-02-15 14:24:25 -08:00
parent 18cba86e74
commit 9110461294
4 changed files with 21 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ namespace ts {
getSignaturesOfType,
getIndexTypeOfType,
getBaseTypes,
getWidenedType,
getBaseTypeOfLiteralType,
getTypeFromTypeNode,
getParameterType: getTypeAtPosition,
getReturnTypeOfSignature,

View File

@@ -2382,7 +2382,7 @@
getSignaturesOfType(type: Type, kind: SignatureKind): Signature[];
getIndexTypeOfType(type: Type, kind: IndexKind): Type;
getBaseTypes(type: InterfaceType): BaseType[];
getWidenedType(type: Type): Type;
getBaseTypeOfLiteralType(type: Type): Type;
getReturnTypeOfSignature(signature: Signature): Type;
/**
* Gets the type of a parameter at a given position in a signature.