File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -4968,6 +4968,16 @@ export interface TypeChecker {
4968
4968
getWidenedLiteralType ( type : Type ) : Type ;
4969
4969
/** @internal */
4970
4970
getPromisedTypeOfPromise ( promise : Type , errorNode ?: Node ) : Type | undefined ;
4971
+ /**
4972
+ * Gets the "awaited type" of a type.
4973
+ *
4974
+ * The "awaited type" of an expression is its "promised type" if the expression is a
4975
+ * Promise-like type; otherwise, it is the type of the expression. If the "promised
4976
+ * type" is itself a Promise-like, the "promised type" is recursively unwrapped until a
4977
+ * non-promise type is found.
4978
+ *
4979
+ * This is used to reflect the runtime behavior of the `await` keyword.
4980
+ */
4971
4981
getAwaitedType ( type : Type ) : Type | undefined ;
4972
4982
/** @internal */
4973
4983
isEmptyAnonymousObjectType ( type : Type ) : boolean ;
You can’t perform that action at this time.
0 commit comments