typescript 5.0.0-dev.20230201 → 5.0.0-dev.20230203
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/lib.d.ts +0 -2
- package/lib/lib.decorators.d.ts +0 -2
- package/lib/lib.decorators.legacy.d.ts +0 -2
- package/lib/lib.dom.d.ts +0 -2
- package/lib/lib.dom.iterable.d.ts +0 -2
- package/lib/lib.es2015.collection.d.ts +0 -2
- package/lib/lib.es2015.core.d.ts +0 -2
- package/lib/lib.es2015.d.ts +0 -2
- package/lib/lib.es2015.generator.d.ts +0 -2
- package/lib/lib.es2015.iterable.d.ts +0 -2
- package/lib/lib.es2015.promise.d.ts +0 -2
- package/lib/lib.es2015.proxy.d.ts +0 -2
- package/lib/lib.es2015.reflect.d.ts +0 -2
- package/lib/lib.es2015.symbol.d.ts +0 -2
- package/lib/lib.es2015.symbol.wellknown.d.ts +0 -2
- package/lib/lib.es2016.array.include.d.ts +0 -2
- package/lib/lib.es2016.d.ts +0 -2
- package/lib/lib.es2016.full.d.ts +0 -2
- package/lib/lib.es2017.d.ts +0 -2
- package/lib/lib.es2017.full.d.ts +0 -2
- package/lib/lib.es2017.intl.d.ts +0 -2
- package/lib/lib.es2017.object.d.ts +0 -2
- package/lib/lib.es2017.sharedmemory.d.ts +0 -2
- package/lib/lib.es2017.string.d.ts +0 -2
- package/lib/lib.es2017.typedarrays.d.ts +0 -2
- package/lib/lib.es2018.asyncgenerator.d.ts +0 -2
- package/lib/lib.es2018.asynciterable.d.ts +0 -2
- package/lib/lib.es2018.d.ts +0 -2
- package/lib/lib.es2018.full.d.ts +0 -2
- package/lib/lib.es2018.intl.d.ts +0 -2
- package/lib/lib.es2018.promise.d.ts +0 -2
- package/lib/lib.es2018.regexp.d.ts +0 -2
- package/lib/lib.es2019.array.d.ts +0 -2
- package/lib/lib.es2019.d.ts +0 -2
- package/lib/lib.es2019.full.d.ts +0 -2
- package/lib/lib.es2019.intl.d.ts +0 -2
- package/lib/lib.es2019.object.d.ts +0 -2
- package/lib/lib.es2019.string.d.ts +0 -2
- package/lib/lib.es2019.symbol.d.ts +0 -2
- package/lib/lib.es2020.bigint.d.ts +0 -2
- package/lib/lib.es2020.d.ts +0 -2
- package/lib/lib.es2020.date.d.ts +0 -2
- package/lib/lib.es2020.full.d.ts +0 -2
- package/lib/lib.es2020.intl.d.ts +0 -2
- package/lib/lib.es2020.number.d.ts +0 -2
- package/lib/lib.es2020.promise.d.ts +0 -2
- package/lib/lib.es2020.sharedmemory.d.ts +0 -2
- package/lib/lib.es2020.string.d.ts +0 -2
- package/lib/lib.es2020.symbol.wellknown.d.ts +0 -2
- package/lib/lib.es2021.d.ts +0 -2
- package/lib/lib.es2021.full.d.ts +0 -2
- package/lib/lib.es2021.intl.d.ts +0 -2
- package/lib/lib.es2021.promise.d.ts +0 -2
- package/lib/lib.es2021.string.d.ts +0 -2
- package/lib/lib.es2021.weakref.d.ts +0 -2
- package/lib/lib.es2022.array.d.ts +0 -2
- package/lib/lib.es2022.d.ts +0 -2
- package/lib/lib.es2022.error.d.ts +0 -2
- package/lib/lib.es2022.full.d.ts +0 -2
- package/lib/lib.es2022.intl.d.ts +0 -2
- package/lib/lib.es2022.object.d.ts +0 -2
- package/lib/lib.es2022.regexp.d.ts +0 -2
- package/lib/lib.es2022.sharedmemory.d.ts +0 -2
- package/lib/lib.es2022.string.d.ts +0 -2
- package/lib/lib.es2023.array.d.ts +0 -2
- package/lib/lib.es2023.d.ts +0 -2
- package/lib/lib.es2023.full.d.ts +0 -2
- package/lib/lib.es5.d.ts +0 -2
- package/lib/lib.es6.d.ts +0 -2
- package/lib/lib.esnext.d.ts +0 -2
- package/lib/lib.esnext.full.d.ts +0 -2
- package/lib/lib.esnext.intl.d.ts +0 -2
- package/lib/lib.scripthost.d.ts +0 -2
- package/lib/lib.webworker.d.ts +0 -2
- package/lib/lib.webworker.importscripts.d.ts +0 -2
- package/lib/lib.webworker.iterable.d.ts +0 -2
- package/lib/tsc.js +132 -60
- package/lib/tsserver.js +2884 -2805
- package/lib/tsserverlibrary.d.ts +16 -0
- package/lib/tsserverlibrary.js +154 -75
- package/lib/typescript.d.ts +16 -0
- package/lib/typescript.js +151 -72
- package/lib/typingsInstaller.js +35 -18
- package/package.json +2 -1
package/lib/typescript.d.ts
CHANGED
|
@@ -2335,6 +2335,7 @@ declare namespace ts {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
interface TypeChecker {
|
|
2337
2337
|
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
|
|
2338
|
+
getTypeOfSymbol(symbol: Symbol): Type;
|
|
2338
2339
|
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
|
|
2339
2340
|
getPropertiesOfType(type: Type): Symbol[];
|
|
2340
2341
|
getPropertyOfType(type: Type, propertyName: string): Symbol | undefined;
|
|
@@ -2425,6 +2426,21 @@ declare namespace ts {
|
|
|
2425
2426
|
getApparentType(type: Type): Type;
|
|
2426
2427
|
getBaseConstraintOfType(type: Type): Type | undefined;
|
|
2427
2428
|
getDefaultFromTypeParameter(type: Type): Type | undefined;
|
|
2429
|
+
/**
|
|
2430
|
+
* True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
|
|
2431
|
+
* This function will _not_ return true if passed a type which
|
|
2432
|
+
* extends `Array` (for example, the TypeScript AST's `NodeArray` type).
|
|
2433
|
+
*/
|
|
2434
|
+
isArrayType(type: Type): boolean;
|
|
2435
|
+
/**
|
|
2436
|
+
* True if this type is a tuple type. This function will _not_ return true if
|
|
2437
|
+
* passed a type which extends from a tuple.
|
|
2438
|
+
*/
|
|
2439
|
+
isTupleType(type: Type): boolean;
|
|
2440
|
+
/**
|
|
2441
|
+
* True if this type is assignable to `ReadonlyArray<any>`.
|
|
2442
|
+
*/
|
|
2443
|
+
isArrayLikeType(type: Type): boolean;
|
|
2428
2444
|
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
|
|
2429
2445
|
/**
|
|
2430
2446
|
* Depending on the operation performed, it may be appropriate to throw away the checker
|