You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Textendsnull|undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode
1528
-
Textendsobject&{then(onfulfilled: infer F, ...args: infer _): any} ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
1529
-
Fextends((value: infer V, ...args: infer _)=>any) ? // if the argument to `then` is callable, extracts the first argument
1530
-
Awaited<V> : // recursively unwrap the value
1531
-
never : // the argument to `then` was not callable
1532
-
T;// non-object or non-thenable
1535
+
Textendsobject&{then(onfulfilled: infer F, ...args: infer _): any} ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
1536
+
Fextends((value: infer V, ...args: infer _)=>any) ? // if the argument to `then` is callable, extracts the first argument
1537
+
Awaited<V> : // recursively unwrap the value
1538
+
never : // the argument to `then` was not callable
0 commit comments