@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.
@@ -2426,6 +2426,40 @@ declare namespace ts {
2426
2426
  getApparentType(type: Type): Type;
2427
2427
  getBaseConstraintOfType(type: Type): Type | undefined;
2428
2428
  getDefaultFromTypeParameter(type: Type): Type | undefined;
2429
+ /**
2430
+ * Gets the intrinsic `any` type. There are multiple types that act as `any` used internally in the compiler,
2431
+ * so the type returned by this function should not be used in equality checks to determine if another type
2432
+ * is `any`. Instead, use `type.flags & TypeFlags.Any`.
2433
+ */
2434
+ getAnyType(): Type;
2435
+ getStringType(): Type;
2436
+ getStringLiteralType(value: string): StringLiteralType;
2437
+ getNumberType(): Type;
2438
+ getNumberLiteralType(value: number): NumberLiteralType;
2439
+ getBigIntType(): Type;
2440
+ getBooleanType(): Type;
2441
+ getFalseType(): Type;
2442
+ getTrueType(): Type;
2443
+ getVoidType(): Type;
2444
+ /**
2445
+ * Gets the intrinsic `undefined` type. There are multiple types that act as `undefined` used internally in the compiler
2446
+ * depending on compiler options, so the type returned by this function should not be used in equality checks to determine
2447
+ * if another type is `undefined`. Instead, use `type.flags & TypeFlags.Undefined`.
2448
+ */
2449
+ getUndefinedType(): Type;
2450
+ /**
2451
+ * Gets the intrinsic `null` type. There are multiple types that act as `null` used internally in the compiler,
2452
+ * so the type returned by this function should not be used in equality checks to determine if another type
2453
+ * is `null`. Instead, use `type.flags & TypeFlags.Null`.
2454
+ */
2455
+ getNullType(): Type;
2456
+ getESSymbolType(): Type;
2457
+ /**
2458
+ * Gets the intrinsic `never` type. There are multiple types that act as `never` used internally in the compiler,
2459
+ * so the type returned by this function should not be used in equality checks to determine if another type
2460
+ * is `never`. Instead, use `type.flags & TypeFlags.Never`.
2461
+ */
2462
+ getNeverType(): Type;
2429
2463
  /**
2430
2464
  * True if this type is the `Array` or `ReadonlyArray` type from lib.d.ts.
2431
2465
  * This function will _not_ return true if passed a type which
@@ -3014,6 +3048,12 @@ declare namespace ts {
3014
3048
  }
3015
3049
  enum ModuleResolutionKind {
3016
3050
  Classic = 1,
3051
+ /**
3052
+ * @deprecated
3053
+ * `NodeJs` was renamed to `Node10` to better reflect the version of Node that it targets.
3054
+ * Use the new name or consider switching to a modern module resolution target.
3055
+ */
3056
+ NodeJs = 2,
3017
3057
  Node10 = 2,
3018
3058
  Node16 = 3,
3019
3059
  NodeNext = 99,
@@ -4380,9 +4420,15 @@ declare namespace ts {
4380
4420
  function createScanner(languageVersion: ScriptTarget, skipTrivia: boolean, languageVariant?: LanguageVariant, textInitial?: string, onError?: ErrorCallback, start?: number, length?: number): Scanner;
4381
4421
  type ErrorCallback = (message: DiagnosticMessage, length: number) => void;
4382
4422
  interface Scanner {
4423
+ /** @deprecated use {@link getTokenFullStart} */
4383
4424
  getStartPos(): number;
4384
4425
  getToken(): SyntaxKind;
4426
+ getTokenFullStart(): number;
4427
+ getTokenStart(): number;
4428
+ getTokenEnd(): number;
4429
+ /** @deprecated use {@link getTokenEnd} */
4385
4430
  getTextPos(): number;
4431
+ /** @deprecated use {@link getTokenStart} */
4386
4432
  getTokenPos(): number;
4387
4433
  getTokenText(): string;
4388
4434
  getTokenValue(): string;
@@ -4413,7 +4459,9 @@ declare namespace ts {
4413
4459
  setOnError(onError: ErrorCallback | undefined): void;
4414
4460
  setScriptTarget(scriptTarget: ScriptTarget): void;
4415
4461
  setLanguageVariant(variant: LanguageVariant): void;
4462
+ /** @deprecated use {@link resetTokenState} */
4416
4463
  setTextPos(textPos: number): void;
4464
+ resetTokenState(pos: number): void;
4417
4465
  lookAhead<T>(callback: () => T): T;
4418
4466
  scanRange<T>(start: number, length: number, callback: () => T): T;
4419
4467
  tryScan<T>(callback: () => T): T;