typescript 4.7.4 → 4.8.0-beta

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.
Files changed (35) hide show
  1. package/lib/cs/diagnosticMessages.generated.json +19 -3
  2. package/lib/de/diagnosticMessages.generated.json +17 -3
  3. package/lib/dynamicImportCompat.js +25 -0
  4. package/lib/es/diagnosticMessages.generated.json +19 -3
  5. package/lib/fr/diagnosticMessages.generated.json +19 -3
  6. package/lib/it/diagnosticMessages.generated.json +17 -3
  7. package/lib/ja/diagnosticMessages.generated.json +17 -3
  8. package/lib/ko/diagnosticMessages.generated.json +19 -3
  9. package/lib/lib.dom.d.ts +128 -183
  10. package/lib/lib.dom.iterable.d.ts +1 -11
  11. package/lib/lib.es2020.intl.d.ts +30 -5
  12. package/lib/lib.es2021.intl.d.ts +7 -3
  13. package/lib/lib.es2022.d.ts +1 -0
  14. package/lib/lib.es2022.sharedmemory.d.ts +27 -0
  15. package/lib/lib.es5.d.ts +1 -1
  16. package/lib/lib.esnext.intl.d.ts +5 -1
  17. package/lib/lib.webworker.d.ts +54 -27
  18. package/lib/lib.webworker.iterable.d.ts +1 -1
  19. package/lib/pl/diagnosticMessages.generated.json +19 -3
  20. package/lib/protocol.d.ts +2 -0
  21. package/lib/pt-br/diagnosticMessages.generated.json +19 -3
  22. package/lib/ru/diagnosticMessages.generated.json +19 -3
  23. package/lib/tr/diagnosticMessages.generated.json +17 -3
  24. package/lib/tsc.js +4009 -2508
  25. package/lib/tsserver.js +7417 -3818
  26. package/lib/tsserverlibrary.d.ts +534 -110
  27. package/lib/tsserverlibrary.js +7328 -3816
  28. package/lib/typescript.d.ts +522 -108
  29. package/lib/typescript.js +6842 -3647
  30. package/lib/typescriptServices.d.ts +522 -108
  31. package/lib/typescriptServices.js +6842 -3647
  32. package/lib/typingsInstaller.js +4938 -3446
  33. package/lib/zh-cn/diagnosticMessages.generated.json +19 -3
  34. package/lib/zh-tw/diagnosticMessages.generated.json +19 -3
  35. package/package.json +21 -20
@@ -18,6 +18,7 @@ and limitations under the License.
18
18
  /// <reference no-default-lib="true"/>
19
19
 
20
20
 
21
+ /// <reference lib="es2018.intl" />
21
22
  declare namespace Intl {
22
23
 
23
24
  /**
@@ -50,6 +51,25 @@ declare namespace Intl {
50
51
  | "second"
51
52
  | "seconds";
52
53
 
54
+ /**
55
+ * Value of the `unit` property in objects returned by
56
+ * `Intl.RelativeTimeFormat.prototype.formatToParts()`. `formatToParts` and
57
+ * `format` methods accept either singular or plural unit names as input,
58
+ * but `formatToParts` only outputs singular (e.g. "day") not plural (e.g.
59
+ * "days").
60
+ *
61
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
62
+ */
63
+ type RelativeTimeFormatUnitSingular =
64
+ | "year"
65
+ | "quarter"
66
+ | "month"
67
+ | "week"
68
+ | "day"
69
+ | "hour"
70
+ | "minute"
71
+ | "second";
72
+
53
73
  /**
54
74
  * The locale matching algorithm to use.
55
75
  *
@@ -120,11 +140,16 @@ declare namespace Intl {
120
140
  *
121
141
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
122
142
  */
123
- interface RelativeTimeFormatPart {
124
- type: string;
125
- value: string;
126
- unit?: RelativeTimeFormatUnit;
127
- }
143
+ type RelativeTimeFormatPart =
144
+ | {
145
+ type: "literal";
146
+ value: string;
147
+ }
148
+ | {
149
+ type: Exclude<NumberFormatPartTypes, "literal">;
150
+ value: string;
151
+ unit: RelativeTimeFormatUnitSingular;
152
+ };
128
153
 
129
154
  interface RelativeTimeFormat {
130
155
  /**
@@ -25,12 +25,16 @@ declare namespace Intl {
25
25
  dateStyle?: "full" | "long" | "medium" | "short" | undefined;
26
26
  timeStyle?: "full" | "long" | "medium" | "short" | undefined;
27
27
  dayPeriod?: "narrow" | "short" | "long" | undefined;
28
- fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined;
28
+ fractionalSecondDigits?: 1 | 2 | 3 | undefined;
29
+ }
30
+
31
+ interface DateTimeRangeFormatPart extends DateTimeFormatPart {
32
+ source: "startRange" | "endRange" | "shared"
29
33
  }
30
34
 
31
35
  interface DateTimeFormat {
32
36
  formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
33
- formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeFormatPart[];
37
+ formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
34
38
  }
35
39
 
36
40
  interface ResolvedDateTimeFormatOptions {
@@ -39,7 +43,7 @@ declare namespace Intl {
39
43
  timeStyle?: "full" | "long" | "medium" | "short";
40
44
  hourCycle?: "h11" | "h12" | "h23" | "h24";
41
45
  dayPeriod?: "narrow" | "short" | "long";
42
- fractionalSecondDigits?: 0 | 1 | 2 | 3;
46
+ fractionalSecondDigits?: 1 | 2 | 3;
43
47
  }
44
48
 
45
49
  /**
@@ -23,4 +23,5 @@ and limitations under the License.
23
23
  /// <reference lib="es2022.error" />
24
24
  /// <reference lib="es2022.intl" />
25
25
  /// <reference lib="es2022.object" />
26
+ /// <reference lib="es2022.sharedmemory" />
26
27
  /// <reference lib="es2022.string" />
@@ -0,0 +1,27 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
+ MERCHANTABLITY OR NON-INFRINGEMENT.
11
+
12
+ See the Apache Version 2.0 License for specific language governing permissions
13
+ and limitations under the License.
14
+ ***************************************************************************** */
15
+
16
+
17
+
18
+ /// <reference no-default-lib="true"/>
19
+
20
+
21
+ interface Atomics {
22
+ /**
23
+ * A non-blocking, asynchronous version of wait which is usable on the main thread.
24
+ * Waits asynchronously on a shared memory location and returns a Promise
25
+ */
26
+ waitAsync(typedArray: BigInt64Array | Int32Array, index: number, value: bigint, timeout?: number): { async: false, value: "ok" | "not-equal" | "timed-out" } | { async: true, value: Promise<"ok" | "not-equal" | "timed-out"> };
27
+ }
package/lib/lib.es5.d.ts CHANGED
@@ -1584,7 +1584,7 @@ type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
1584
1584
  /**
1585
1585
  * Exclude null and undefined from T
1586
1586
  */
1587
- type NonNullable<T> = T extends null | undefined ? never : T;
1587
+ type NonNullable<T> = T & {};
1588
1588
 
1589
1589
  /**
1590
1590
  * Obtain the parameters of a function type in a tuple
@@ -19,8 +19,12 @@ and limitations under the License.
19
19
 
20
20
 
21
21
  declare namespace Intl {
22
+ interface NumberRangeFormatPart extends NumberFormatPart {
23
+ source: "startRange" | "endRange" | "shared"
24
+ }
25
+
22
26
  interface NumberFormat {
23
27
  formatRange(start: number | bigint, end: number | bigint): string;
24
- formatRangeToParts(start: number | bigint, end: number | bigint): NumberFormatPart[];
28
+ formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
25
29
  }
26
30
  }
@@ -271,6 +271,10 @@ interface IDBObjectStoreParameters {
271
271
  keyPath?: string | string[] | null;
272
272
  }
273
273
 
274
+ interface IDBTransactionOptions {
275
+ durability?: IDBTransactionDurability;
276
+ }
277
+
274
278
  interface IDBVersionChangeEventInit extends EventInit {
275
279
  newVersion?: number | null;
276
280
  oldVersion?: number;
@@ -496,12 +500,12 @@ interface RTCEncodedVideoFrameMetadata {
496
500
  width?: number;
497
501
  }
498
502
 
499
- interface ReadableStreamDefaultReadDoneResult {
503
+ interface ReadableStreamReadDoneResult {
500
504
  done: true;
501
505
  value?: undefined;
502
506
  }
503
507
 
504
- interface ReadableStreamDefaultReadValueResult<T> {
508
+ interface ReadableStreamReadValueResult<T> {
505
509
  done: false;
506
510
  value: T;
507
511
  }
@@ -1004,6 +1008,7 @@ declare var CustomEvent: {
1004
1008
 
1005
1009
  /** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
1006
1010
  interface DOMException extends Error {
1011
+ /** @deprecated */
1007
1012
  readonly code: number;
1008
1013
  readonly message: string;
1009
1014
  readonly name: string;
@@ -1466,7 +1471,7 @@ declare var EventTarget: {
1466
1471
 
1467
1472
  /** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
1468
1473
  interface ExtendableEvent extends Event {
1469
- waitUntil(f: any): void;
1474
+ waitUntil(f: Promise<any>): void;
1470
1475
  }
1471
1476
 
1472
1477
  declare var ExtendableEvent: {
@@ -1801,7 +1806,7 @@ interface IDBDatabase extends EventTarget {
1801
1806
  */
1802
1807
  deleteObjectStore(name: string): void;
1803
1808
  /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
1804
- transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
1809
+ transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
1805
1810
  addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1806
1811
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1807
1812
  removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -2287,7 +2292,6 @@ interface NavigatorID {
2287
2292
  readonly appName: string;
2288
2293
  /** @deprecated */
2289
2294
  readonly appVersion: string;
2290
- /** @deprecated */
2291
2295
  readonly platform: string;
2292
2296
  /** @deprecated */
2293
2297
  readonly product: string;
@@ -2304,10 +2308,6 @@ interface NavigatorLocks {
2304
2308
  readonly locks: LockManager;
2305
2309
  }
2306
2310
 
2307
- interface NavigatorNetworkInformation {
2308
- readonly connection: NetworkInformation;
2309
- }
2310
-
2311
2311
  interface NavigatorOnLine {
2312
2312
  readonly onLine: boolean;
2313
2313
  }
@@ -2317,15 +2317,6 @@ interface NavigatorStorage {
2317
2317
  readonly storage: StorageManager;
2318
2318
  }
2319
2319
 
2320
- interface NetworkInformation extends EventTarget {
2321
- readonly type: ConnectionType;
2322
- }
2323
-
2324
- declare var NetworkInformation: {
2325
- prototype: NetworkInformation;
2326
- new(): NetworkInformation;
2327
- };
2328
-
2329
2320
  interface NotificationEventMap {
2330
2321
  "click": Event;
2331
2322
  "close": Event;
@@ -2658,6 +2649,7 @@ declare var PushMessageData: {
2658
2649
  */
2659
2650
  interface PushSubscription {
2660
2651
  readonly endpoint: string;
2652
+ readonly expirationTime: EpochTimeStamp | null;
2661
2653
  readonly options: PushSubscriptionOptions;
2662
2654
  getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
2663
2655
  toJSON(): PushSubscriptionJSON;
@@ -2702,6 +2694,19 @@ declare var RTCEncodedVideoFrame: {
2702
2694
  new(): RTCEncodedVideoFrame;
2703
2695
  };
2704
2696
 
2697
+ interface ReadableByteStreamController {
2698
+ readonly byobRequest: ReadableStreamBYOBRequest | null;
2699
+ readonly desiredSize: number | null;
2700
+ close(): void;
2701
+ enqueue(chunk: ArrayBufferView): void;
2702
+ error(e?: any): void;
2703
+ }
2704
+
2705
+ declare var ReadableByteStreamController: {
2706
+ prototype: ReadableByteStreamController;
2707
+ new(): ReadableByteStreamController;
2708
+ };
2709
+
2705
2710
  /** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
2706
2711
  interface ReadableStream<R = any> {
2707
2712
  readonly locked: boolean;
@@ -2717,6 +2722,27 @@ declare var ReadableStream: {
2717
2722
  new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
2718
2723
  };
2719
2724
 
2725
+ interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
2726
+ read(view: ArrayBufferView): Promise<ReadableStreamReadResult<ArrayBufferView>>;
2727
+ releaseLock(): void;
2728
+ }
2729
+
2730
+ declare var ReadableStreamBYOBReader: {
2731
+ prototype: ReadableStreamBYOBReader;
2732
+ new(stream: ReadableStream): ReadableStreamBYOBReader;
2733
+ };
2734
+
2735
+ interface ReadableStreamBYOBRequest {
2736
+ readonly view: ArrayBufferView | null;
2737
+ respond(bytesWritten: number): void;
2738
+ respondWithNewView(view: ArrayBufferView): void;
2739
+ }
2740
+
2741
+ declare var ReadableStreamBYOBRequest: {
2742
+ prototype: ReadableStreamBYOBRequest;
2743
+ new(): ReadableStreamBYOBRequest;
2744
+ };
2745
+
2720
2746
  interface ReadableStreamDefaultController<R = any> {
2721
2747
  readonly desiredSize: number | null;
2722
2748
  close(): void;
@@ -2730,7 +2756,7 @@ declare var ReadableStreamDefaultController: {
2730
2756
  };
2731
2757
 
2732
2758
  interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
2733
- read(): Promise<ReadableStreamDefaultReadResult<R>>;
2759
+ read(): Promise<ReadableStreamReadResult<R>>;
2734
2760
  releaseLock(): void;
2735
2761
  }
2736
2762
 
@@ -2899,6 +2925,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
2899
2925
  onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
2900
2926
  onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
2901
2927
  readonly registration: ServiceWorkerRegistration;
2928
+ readonly serviceWorker: ServiceWorker;
2902
2929
  skipWaiting(): Promise<void>;
2903
2930
  addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2904
2931
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -5278,8 +5305,8 @@ interface WindowOrWorkerGlobalScope {
5278
5305
  readonly performance: Performance;
5279
5306
  atob(data: string): string;
5280
5307
  btoa(data: string): string;
5281
- clearInterval(id?: number): void;
5282
- clearTimeout(id?: number): void;
5308
+ clearInterval(id: number | undefined): void;
5309
+ clearTimeout(id: number | undefined): void;
5283
5310
  createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5284
5311
  createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5285
5312
  fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
@@ -5371,7 +5398,7 @@ declare var WorkerLocation: {
5371
5398
  };
5372
5399
 
5373
5400
  /** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
5374
- interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
5401
+ interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
5375
5402
  readonly mediaCapabilities: MediaCapabilities;
5376
5403
  }
5377
5404
 
@@ -5395,6 +5422,7 @@ declare var WritableStream: {
5395
5422
 
5396
5423
  /** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
5397
5424
  interface WritableStreamDefaultController {
5425
+ readonly signal: AbortSignal;
5398
5426
  error(e?: any): void;
5399
5427
  }
5400
5428
 
@@ -5818,8 +5846,8 @@ declare var origin: string;
5818
5846
  declare var performance: Performance;
5819
5847
  declare function atob(data: string): string;
5820
5848
  declare function btoa(data: string): string;
5821
- declare function clearInterval(id?: number): void;
5822
- declare function clearTimeout(id?: number): void;
5849
+ declare function clearInterval(id: number | undefined): void;
5850
+ declare function clearTimeout(id: number | undefined): void;
5823
5851
  declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5824
5852
  declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
5825
5853
  declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
@@ -5859,7 +5887,7 @@ type GLsizeiptr = number;
5859
5887
  type GLuint = number;
5860
5888
  type GLuint64 = number;
5861
5889
  type HashAlgorithmIdentifier = AlgorithmIdentifier;
5862
- type HeadersInit = string[][] | Record<string, string> | Headers;
5890
+ type HeadersInit = [string, string][] | Record<string, string> | Headers;
5863
5891
  type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
5864
5892
  type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
5865
5893
  type Int32List = Int32Array | GLint[];
@@ -5869,7 +5897,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
5869
5897
  type PerformanceEntryList = PerformanceEntry[];
5870
5898
  type PushMessageDataInit = BufferSource | string;
5871
5899
  type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
5872
- type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
5900
+ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
5873
5901
  type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
5874
5902
  type RequestInfo = Request | string;
5875
5903
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
@@ -5882,7 +5910,6 @@ type BinaryType = "arraybuffer" | "blob";
5882
5910
  type ClientTypes = "all" | "sharedworker" | "window" | "worker";
5883
5911
  type ColorGamut = "p3" | "rec2020" | "srgb";
5884
5912
  type ColorSpaceConversion = "default" | "none";
5885
- type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
5886
5913
  type DocumentVisibilityState = "hidden" | "visible";
5887
5914
  type EndingType = "native" | "transparent";
5888
5915
  type FileSystemHandleKind = "directory" | "file";
@@ -59,7 +59,7 @@ interface Headers {
59
59
 
60
60
  interface IDBDatabase {
61
61
  /** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
62
- transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
62
+ transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
63
63
  }
64
64
 
65
65
  interface IDBObjectStore {
@@ -132,6 +132,8 @@
132
132
  "Add_definite_assignment_assertion_to_property_0_95020": "Dodaj asercję określonego przypisania do właściwości „{0}”",
133
133
  "Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Dodaj asercję określonego przypisania do wszystkich niezainicjowanych właściwości",
134
134
  "Add_export_to_make_this_file_into_a_module_95097": "Dodaj element „export {}”, aby przekształcić ten plik w moduł",
135
+ "Add_extends_constraint_2211": "Add `extends` constraint.",
136
+ "Add_extends_constraint_to_all_type_parameters_2212": "Add `extends` constraint to all type parameters",
135
137
  "Add_import_from_0_90057": "Dodaj import z „{0}”",
136
138
  "Add_index_signature_for_property_0_90017": "Dodaj sygnaturę indeksu dla właściwości „{0}”",
137
139
  "Add_initializer_to_property_0_95019": "Dodaj inicjator do właściwości „{0}”",
@@ -226,6 +228,7 @@
226
228
  "An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268": "Parametr sygnatury indeksu musi mieć typ „string”, „number” lub „symbol” albo typ literału szablonu.",
227
229
  "An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499": "Interfejs może rozszerzać tylko identyfikator/nazwę kwalifikowaną z opcjonalnymi argumentami typu.",
228
230
  "An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312": "Interfejs może rozszerzać tylko typ obiektu lub część wspólną typów obiektów ze statycznie znanymi elementami członkowskimi.",
231
+ "An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840": "Interfejs nie może rozszerzyć typu pierwotnego, takiego jak „{0}”; interfejs może rozszerzać tylko nazwane typy i klasy",
229
232
  "An_interface_property_cannot_have_an_initializer_1246": "Właściwość interfejsu nie może mieć inicjatora.",
230
233
  "An_iterator_must_have_a_next_method_2489": "Iterator musi zawierać metodę „next()”.",
231
234
  "An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017": "W przypadku używania dyrektywy pragma @jsx z fragmentami JSX jest wymagana dyrektywa pragma @jsxFrag.",
@@ -377,6 +380,8 @@
377
380
  "Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720": "Klasa „{0}” niepoprawnie implementuje klasę „{1}”. Czy chodziło o rozszerzenie „{1}” i odziedziczenie jego elementów członkowskich jako podklasy?",
378
381
  "Class_0_incorrectly_implements_interface_1_2420": "Klasa „{0}” zawiera niepoprawną implementację interfejsu „{1}”.",
379
382
  "Class_0_used_before_its_declaration_2449": "Klasa „{0}” została użyta przed zadeklarowaniem.",
383
+ "Class_constructor_may_not_be_a_generator_1360": "Konstruktor klas nie może być generatorem.",
384
+ "Class_constructor_may_not_be_an_accessor_1341": "Konstruktor klas nie może być metodą dostępu.",
380
385
  "Class_declaration_cannot_implement_overload_list_for_0_2813": "Deklaracja klasy nie może implementować listy przeciążeń dla elementu \"{0}\".",
381
386
  "Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025": "Deklaracje klas nie mogą mieć więcej niż jeden tag \"@augments\" lub \"@extends\".",
382
387
  "Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036": "Dekoratorów klas nie można używać ze statycznym identyfikatorem prywatnym. Rozważ usunięcie eksperymentalnego dekoratora.",
@@ -837,6 +842,7 @@
837
842
  "Invalid_import_specifier_0_has_no_possible_resolutions_6272": "Nieprawidłowy specyfikator importu „{0}” nie ma możliwych rozwiązań.",
838
843
  "Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665": "Nieprawidłowa nazwa modułu w rozszerzeniu. Moduł „{0}” jest rozpoznawany jako moduł bez typu na poziomie „{1}”, którego nie można rozszerzyć.",
839
844
  "Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664": "Nieprawidłowa nazwa modułu w rozszerzeniu. Nie można znaleźć modułu „{0}”.",
845
+ "Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209": "Nieprawidłowy opcjonalny łańcuch z nowego wyrażenia. Czy chodziło Ci o wywołanie „{0}()”?",
840
846
  "Invalid_reference_directive_syntax_1084": "Nieprawidłowa składnia dyrektywy „reference”.",
841
847
  "Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039": "Nieprawidłowe użycie elementu \"{0}\". Nie można go użyć wewnątrz bloku statycznego klasy.",
842
848
  "Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215": "Nieprawidłowe użycie elementu „{0}”. Moduły są określane automatycznie w trybie z ograniczeniami.",
@@ -893,6 +899,7 @@
893
899
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "Określ, że element keyof ma zwracać tylko ciągi zamiast ciągów, liczb i symboli. Starsza opcja.",
894
900
  "Make_super_call_the_first_statement_in_the_constructor_90002": "Ustaw wywołanie „super()” jako pierwszą instrukcję w konstruktorze",
895
901
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "Zmapowany typ obiektu niejawnie ma typ szablonu „any”.",
902
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "Dopasowywane domyślnie do wzorca dołączania „**/*”",
896
903
  "Matched_by_include_pattern_0_in_1_1407": "Zgodne z wzorcem dołączania „{0}” w elemencie „{1}”",
897
904
  "Member_0_implicitly_has_an_1_type_7008": "Dla składowej „{0}” niejawnie określono typ „{1}”.",
898
905
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "Element członkowski „{0}” niejawnie ma typ „{1}”, ale lepszy typ można wywnioskować na podstawie użycia.",
@@ -1083,13 +1090,15 @@
1083
1090
  "Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363": "Nie można skompilować projektu „{0}”, ponieważ jego zależność „{1}” zawiera błędy",
1084
1091
  "Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383": "Nie można skompilować projektu „{0}”, ponieważ jego zależność „{1}” nie została skompilowania",
1085
1092
  "Project_0_is_being_forcibly_rebuilt_6388": "Trwa wymuszone odbudowanie projektu „{0}”",
1093
+ "Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399": "Projekt „{0}” jest nieaktualny, ponieważ plik buildinfo „{1}” wskazuje, że niektóre zmiany nie zostały wyemitowane",
1086
1094
  "Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353": "Projekt „{0}” jest nieaktualny, ponieważ jego zależność „{1}” jest nieaktualna",
1087
- "Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350": "Projekt „{0}” jest nieaktualny, ponieważ najstarsze dane wyjściowe „{1}” są starsze niż najnowsze dane wejściowe „{2}”",
1095
+ "Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350": "Projekt „{0}” jest nieaktualny, ponieważ dane wyjściowe „{1}” są starsze niż dane wejściowe „{2}”",
1088
1096
  "Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352": "Projekt „{0}” jest nieaktualny, ponieważ plik wyjściowy „{1}” nie istnieje",
1089
1097
  "Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381": "Projekt „{0}” jest nieaktualny, ponieważ jego dane wyjściowe zostały wygenerowane w wersji „{1}”, która różni się od bieżącej wersji „{2}”",
1090
1098
  "Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372": "Projekt „{0}” jest nieaktualny, ponieważ dane wyjściowe jego zależności „{1}” uległy zmianie",
1091
1099
  "Project_0_is_up_to_date_6361": "Projekt „{0}” jest aktualny",
1092
- "Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351": "Projekt „{0}” jest aktualny, ponieważ najnowsze dane wejściowe „{1}” są starsze niż najstarsze dane wyjściowe „{2}”",
1100
+ "Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351": "Projekt „{0}” jest aktualny, ponieważ najnowsze dane wejściowe „{1}” są starsze niż dane wyjściowe „{2}”",
1101
+ "Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400": "Projekt „{0}” jest aktualny, ale musi zaktualizować sygnatury czasowe plików wyjściowych, które są starsze niż pliki wejściowe",
1093
1102
  "Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354": "Projekt „{0}” jest aktualny z plikami .d.ts z jego zależności",
1094
1103
  "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Odwołania do projektu nie mogą tworzyć grafu kołowego. Wykryto cykl: {0}",
1095
1104
  "Projects_6255": "Projekty",
@@ -1199,7 +1208,6 @@
1199
1208
  "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "Wymagane parametry typu mogą nie być zgodne z opcjonalnymi parametrami typu.",
1200
1209
  "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "Znaleziono rozwiązanie dla modułu „{0}” w pamięci podręcznej z lokalizacji „{1}”.",
1201
1210
  "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "Znaleziono rozwiązanie dla dyrektywy odwołania do typu „{0}” w pamięci podręcznej z lokalizacji „{1}”.",
1202
- "Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Tryby rozdzielczości są obsługiwane tylko wtedy, gdy element „moduleResolution” ma wartość „node16” lub „nodenext”.",
1203
1211
  "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "Rozwiązuj elementy „keyof” tylko do nazw właściwości mających jako wartość ciągi (nie liczby czy symbole).",
1204
1212
  "Resolving_module_0_from_1_6086": "======== Rozpoznawanie modułu „{0}” na podstawie „{1}”. ========",
1205
1213
  "Resolving_module_name_0_relative_to_base_url_1_2_6094": "Rozpoznawanie nazwy modułu „{0}” względem podstawowego adresu URL „{1}” — „{2}”.",
@@ -1443,6 +1451,7 @@
1443
1451
  "The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207": "Modyfikatora „type” nie można użyć w nazwanym eksporcie, gdy w instrukcji eksportowania jest używany element „export type”.",
1444
1452
  "The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206": "Modyfikatora „type” nie można użyć w nazwanym imporcie, gdy w instrukcji importowania jest używany element „import type”.",
1445
1453
  "The_type_of_a_function_declaration_must_match_the_function_s_signature_8030": "Typ deklaracji funkcji musi być zgodny z sygnaturą funkcji.",
1454
+ "The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841": "Nie można nazwać typu tego wyrażenia bez asercji „resolution-mode”, która jest niestabilną funkcją. Aby wyciszyć ten błąd, użyj nocnego języka TypeScript. Spróbuj zaktualizować przy użyciu polecenia „npm install -D typescript@next”.",
1446
1455
  "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118": "Typ tego węzła nie może być serializowany, ponieważ jego właściwość „{0}” nie może być serializowana.",
1447
1456
  "The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547": "Typ zwracany przez metodę „{0}()” iteratora asynchronicznego musi być obietnicą dla typu z właściwością „value”.",
1448
1457
  "The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490": "Typ zwracany przez metodę „{0}()” iteratora musi mieć właściwość „value”.",
@@ -1453,6 +1462,7 @@
1453
1462
  "The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410": "Instrukcja „with” nie jest obsługiwana. Wszystkie symbole w bloku „with” będą mieć typ „any”.",
1454
1463
  "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Element prop „{0}” tego tagu JSX oczekuje pojedynczego elementu podrzędnego typu „{1}”, ale podano wiele elementów podrzędnych.",
1455
1464
  "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Element prop „{0}” tego tagu JSX oczekuje typu „{1}”, który wymaga wielu elementów podrzędnych, ale podano tylko jeden element podrzędny.",
1465
+ "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Ten warunek zawsze będzie zwracać wartość „{0}”, ponieważ język JavaScript porównuje obiekty według odwołania, a nie wartości.",
1456
1466
  "This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367": "Ten warunek będzie zawsze zwracał element „{0}”, ponieważ typy „{1}” i „{2}” nie nakładają się.",
1457
1467
  "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Ten warunek będzie zawsze zwracać wartość true, ponieważ wartość '{0}' jest zawsze prawdziwa.",
1458
1468
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Ten warunek będzie zawsze zwracał wartość true, ponieważ funkcja jest zawsze zdefiniowana. Czy chcesz wywołać ją zamiast tego?",
@@ -1485,6 +1495,7 @@
1485
1495
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Ta składnia wymaga zaimportowanego pomocnika, ale nie można znaleźć modułu „{0}”.",
1486
1496
  "This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Ta składnia wymaga zaimportowanego pomocnika o nazwie „{1}”, który nie istnieje w elemencie „{0}”. Rozważ uaktualnienie wersji „{0}”.",
1487
1497
  "This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Ta składnia wymaga zaimportowanego pomocnika o nazwie „{1}” z parametrami {2}, który nie jest zgodny z tym w elemencie „{0}”. Rozważ uaktualnienie wersji elementu „{0}”.",
1498
+ "This_type_parameter_might_need_an_extends_0_constraint_2208": "This type parameter might need an `extends {0}` constraint.",
1488
1499
  "This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "To użycie elementu „import” jest nieprawidłowe. Wywołania „import()” mogą być zapisywane, ale muszą mieć nawiasy i nie mogą mieć argumentów typu.",
1489
1500
  "Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Wyrażenia „await” najwyższego poziomu są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na wartość „es2022”, „esnext”, „system”, „node16” lub „nodenext”, a opcja „target” jest ustawiona na wartość „es2017” lub wyższą.",
1490
1501
  "Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklaracje najwyższego poziomu w plikach .d.ts muszą rozpoczynać się od modyfikatora „declare” lub „export”.",
@@ -1642,6 +1653,7 @@
1642
1653
  "Watch_and_Build_Modes_6250": "Tryb wyrażeń kontrolnych i kompilowania",
1643
1654
  "Watch_input_files_6005": "Obserwuj pliki wejściowe.",
1644
1655
  "Watch_option_0_requires_a_value_of_type_1_5080": "Opcja obserwowania „{0}” wymaga wartości typu {1}.",
1656
+ "We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Możemy napisać typ tylko dla elementu „{0}”, dodając typ dla całego parametru w tym miejscu.",
1645
1657
  "When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Podczas przypisywania funkcji upewnij się, że parametry i zwracane wartości są zgodne pod względem podtypów.",
1646
1658
  "When_type_checking_take_into_account_null_and_undefined_6699": "Podczas sprawdzania typów uwzględniaj wartości „null” i „undefined”.",
1647
1659
  "Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Określa, czy zachować nieaktualne dane wyjściowe konsoli w trybie śledzenia zamiast wyczyścić ekran.",
@@ -1681,6 +1693,7 @@
1681
1693
  "_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Typu indeksu „{0}” „{1}” nie można przypisać do typu indeksu „{2}” „{3}”.",
1682
1694
  "_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "Element „{0}” jest elementem podstawowym, ale element „{1}” jest obiektem otoki. Preferuje się użycie elementu „{0}”, jeśli jest to możliwe.",
1683
1695
  "_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Element \"{0}\" jest typem i musi być importowany przy użyciu importu tylko typu, gdy są włączone opcje \"preserveValueImports\" i \"isolatedModules\".",
1696
+ "_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "„{0}” to nieużywana zmiana nazwy elementu „{1}”. Czy zamierzano używać go jako adnotacji typu?",
1684
1697
  "_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "Element „{0}” można przypisać do ograniczenia typu „{1}”, ale wystąpienie typu „{1}” można utworzyć z innym podtypem ograniczenia „{2}”.",
1685
1698
  "_0_is_declared_but_its_value_is_never_read_6133": "Element „{0}” jest zadeklarowany, ale jego wartość nie jest nigdy odczytywana.",
1686
1699
  "_0_is_declared_but_never_used_6196": "Element „{0}” jest zadeklarowany, ale nie jest nigdy używany.",
@@ -1775,6 +1788,7 @@
1775
1788
  "one_of_Colon_6900": "jeden z:",
1776
1789
  "one_or_more_Colon_6901": "co najmniej jeden:",
1777
1790
  "options_6024": "opcje",
1791
+ "or_JSX_element_expected_1145": "Oczekiwano elementu „{” lub JSX.",
1778
1792
  "or_expected_1144": "Oczekiwano znaku „{” lub „;”.",
1779
1793
  "package_json_does_not_have_a_0_field_6100": "Plik „package.json” nie zawiera pola „{0}”.",
1780
1794
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "Plik „package.json” nie zawiera wpisu „typesVersions” odpowiadającego wersji „{0}”.",
@@ -1790,6 +1804,8 @@
1790
1804
  "readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024": "Modyfikator „readonly” może występować jedynie w deklaracji właściwości lub sygnaturze indeksu.",
1791
1805
  "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354": "Modyfikator typu „readonly” jest dozwolony tylko w typach literału tablicy i krotki.",
1792
1806
  "require_call_may_be_converted_to_an_import_80005": "Wywołanie „require” może zostać przekonwertowane na wywołanie import.",
1807
+ "resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "Asercje „resolution-mode” są obsługiwane tylko wtedy, gdy element „moduleResolution” ma wartość „node16” lub „nodenext”.",
1808
+ "resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "Asercje „resolution-mode” są niestabilne. Użyj nocnego języka TypeScript, aby wyciszyć ten błąd. Spróbuj zaktualizować za pomocą polecenia „npm install -D typescript@next”.",
1793
1809
  "resolution_mode_can_only_be_set_for_type_only_imports_1454": "Element „resolution-mode“ można ustawić wyłącznie dla importów tylko typów.",
1794
1810
  "resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455": "Element „resolution-mode“ jest jedynym prawidłowym kluczem dla twierdzenia importu typu.",
1795
1811
  "resolution_mode_should_be_either_require_or_import_1453": "Element „resolution-mode” powinien mieć wartość „require” lub „import”.",
package/lib/protocol.d.ts CHANGED
@@ -2699,9 +2699,11 @@ declare namespace ts.server.protocol {
2699
2699
  readonly includeInlayParameterNameHintsWhenArgumentMatchesName?: boolean;
2700
2700
  readonly includeInlayFunctionParameterTypeHints?: boolean;
2701
2701
  readonly includeInlayVariableTypeHints?: boolean;
2702
+ readonly includeInlayVariableTypeHintsWhenTypeMatchesName?: boolean;
2702
2703
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
2703
2704
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
2704
2705
  readonly includeInlayEnumMemberValueHints?: boolean;
2706
+ readonly autoImportFileExcludePatterns?: string[];
2705
2707
  }
2706
2708
  interface CompilerOptions {
2707
2709
  allowJs?: boolean;