typescript 5.6.0-dev.20240819 → 5.7.0-dev.20240821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tsc.js +124 -43
- package/lib/typesMap.json +497 -497
- package/lib/typescript.d.ts +22 -1
- package/lib/typescript.js +270 -96
- package/package.json +2 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -3595,7 +3595,7 @@ declare namespace ts {
|
|
|
3595
3595
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
|
|
3596
3596
|
}
|
|
3597
3597
|
}
|
|
3598
|
-
const versionMajorMinor = "5.
|
|
3598
|
+
const versionMajorMinor = "5.7";
|
|
3599
3599
|
/** The version of the TypeScript compiler release */
|
|
3600
3600
|
const version: string;
|
|
3601
3601
|
/**
|
|
@@ -6121,6 +6121,27 @@ declare namespace ts {
|
|
|
6121
6121
|
getBaseTypes(type: InterfaceType): BaseType[];
|
|
6122
6122
|
getBaseTypeOfLiteralType(type: Type): Type;
|
|
6123
6123
|
getWidenedType(type: Type): Type;
|
|
6124
|
+
/**
|
|
6125
|
+
* Gets the "awaited type" of a type.
|
|
6126
|
+
*
|
|
6127
|
+
* If an expression has a Promise-like type, the "awaited type" of the expression is
|
|
6128
|
+
* derived from the type of the first argument of the fulfillment callback for that
|
|
6129
|
+
* Promise's `then` method. If the "awaited type" is itself a Promise-like, it is
|
|
6130
|
+
* recursively unwrapped in the same manner until a non-promise type is found.
|
|
6131
|
+
*
|
|
6132
|
+
* If an expression does not have a Promise-like type, its "awaited type" is the type
|
|
6133
|
+
* of the expression.
|
|
6134
|
+
*
|
|
6135
|
+
* If the resulting "awaited type" is a generic object type, then it is wrapped in
|
|
6136
|
+
* an `Awaited<T>`.
|
|
6137
|
+
*
|
|
6138
|
+
* In the event the "awaited type" circularly references itself, or is a non-Promise
|
|
6139
|
+
* object-type with a callable `then()` method, an "awaited type" cannot be determined
|
|
6140
|
+
* and the value `undefined` will be returned.
|
|
6141
|
+
*
|
|
6142
|
+
* This is used to reflect the runtime behavior of the `await` keyword.
|
|
6143
|
+
*/
|
|
6144
|
+
getAwaitedType(type: Type): Type | undefined;
|
|
6124
6145
|
getReturnTypeOfSignature(signature: Signature): Type;
|
|
6125
6146
|
getNullableType(type: Type, flags: TypeFlags): Type;
|
|
6126
6147
|
getNonNullableType(type: Type): Type;
|