@typescript-deploys/pr-build 5.1.0-pr-52226-2 → 5.1.0-pr-52845-10
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 +271 -231
- package/lib/tsserver.js +341 -293
- package/lib/tsserverlibrary.d.ts +48 -0
- package/lib/tsserverlibrary.js +342 -293
- package/lib/typescript.d.ts +48 -0
- package/lib/typescript.js +342 -292
- package/lib/typingsInstaller.js +127 -3797
- package/package.json +3 -2
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -6369,6 +6369,40 @@ declare namespace ts {
|
|
|
6369
6369
|
getApparentType(type: Type): Type;
|
|
6370
6370
|
getBaseConstraintOfType(type: Type): Type | undefined;
|
|
6371
6371
|
getDefaultFromTypeParameter(type: Type): Type | undefined;
|
|
6372
|
+
/**
|
|
6373
|
+
* Gets the intrinsic `any` type. There are multiple types that act as `any` used internally in the compiler,
|
|
6374
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
6375
|
+
* is `any`. Instead, use `type.flags & TypeFlags.Any`.
|
|
6376
|
+
*/
|
|
6377
|
+
getAnyType(): Type;
|
|
6378
|
+
getStringType(): Type;
|
|
6379
|
+
getStringLiteralType(value: string): StringLiteralType;
|
|
6380
|
+
getNumberType(): Type;
|
|
6381
|
+
getNumberLiteralType(value: number): NumberLiteralType;
|
|
6382
|
+
getBigIntType(): Type;
|
|
6383
|
+
getBooleanType(): Type;
|
|
6384
|
+
getFalseType(): Type;
|
|
6385
|
+
getTrueType(): Type;
|
|
6386
|
+
getVoidType(): Type;
|
|
6387
|
+
/**
|
|
6388
|
+
* Gets the intrinsic `undefined` type. There are multiple types that act as `undefined` used internally in the compiler
|
|
6389
|
+
* depending on compiler options, so the type returned by this function should not be used in equality checks to determine
|
|
6390
|
+
* if another type is `undefined`. Instead, use `type.flags & TypeFlags.Undefined`.
|
|
6391
|
+
*/
|
|
6392
|
+
getUndefinedType(): Type;
|
|
6393
|
+
/**
|
|
6394
|
+
* Gets the intrinsic `null` type. There are multiple types that act as `null` used internally in the compiler,
|
|
6395
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
6396
|
+
* is `null`. Instead, use `type.flags & TypeFlags.Null`.
|
|
6397
|
+
*/
|
|
6398
|
+
getNullType(): Type;
|
|
6399
|
+
getESSymbolType(): Type;
|
|
6400
|
+
/**
|
|
6401
|
+
* Gets the intrinsic `never` type. There are multiple types that act as `never` used internally in the compiler,
|
|
6402
|
+
* so the type returned by this function should not be used in equality checks to determine if another type
|
|
6403
|
+
* is `never`. Instead, use `type.flags & TypeFlags.Never`.
|
|
6404
|
+
*/
|
|
6405
|
+
getNeverType(): Type;
|
|
6372
6406
|
/**
|
|
6373
6407
|
* True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
|
|
6374
6408
|
* This function will _not_ return true if passed a type which
|
|
@@ -6957,6 +6991,12 @@ declare namespace ts {
|
|
|
6957
6991
|
}
|
|
6958
6992
|
enum ModuleResolutionKind {
|
|
6959
6993
|
Classic = 1,
|
|
6994
|
+
/**
|
|
6995
|
+
* @deprecated
|
|
6996
|
+
* `NodeJs` was renamed to `Node10` to better reflect the version of Node that it targets.
|
|
6997
|
+
* Use the new name or consider switching to a modern module resolution target.
|
|
6998
|
+
*/
|
|
6999
|
+
NodeJs = 2,
|
|
6960
7000
|
Node10 = 2,
|
|
6961
7001
|
Node16 = 3,
|
|
6962
7002
|
NodeNext = 99,
|
|
@@ -8323,9 +8363,15 @@ declare namespace ts {
|
|
|
8323
8363
|
function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant?: LanguageVariant, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner;
|
|
8324
8364
|
type ErrorCallback = (message: DiagnosticMessage, length: number) => void;
|
|
8325
8365
|
interface Scanner {
|
|
8366
|
+
/** @deprecated use {@link getTokenFullStart} */
|
|
8326
8367
|
getStartPos(): number;
|
|
8327
8368
|
getToken(): SyntaxKind;
|
|
8369
|
+
getTokenFullStart(): number;
|
|
8370
|
+
getTokenStart(): number;
|
|
8371
|
+
getTokenEnd(): number;
|
|
8372
|
+
/** @deprecated use {@link getTokenEnd} */
|
|
8328
8373
|
getTextPos(): number;
|
|
8374
|
+
/** @deprecated use {@link getTokenStart} */
|
|
8329
8375
|
getTokenPos(): number;
|
|
8330
8376
|
getTokenText(): string;
|
|
8331
8377
|
getTokenValue(): string;
|
|
@@ -8356,7 +8402,9 @@ declare namespace ts {
|
|
|
8356
8402
|
setOnError(onError: ErrorCallback | undefined): void;
|
|
8357
8403
|
setScriptTarget(scriptTarget: ScriptTarget): void;
|
|
8358
8404
|
setLanguageVariant(variant: LanguageVariant): void;
|
|
8405
|
+
/** @deprecated use {@link resetTokenState} */
|
|
8359
8406
|
setTextPos(textPos: number): void;
|
|
8407
|
+
resetTokenState(pos: number): void;
|
|
8360
8408
|
lookAhead<T>(callback: () => T): T;
|
|
8361
8409
|
scanRange<T>(start: number, length: number, callback: () => T): T;
|
|
8362
8410
|
tryScan<T>(callback: () => T): T;
|