typescript 4.9.0-dev.20220921 → 4.9.0-dev.20220923

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.
@@ -500,9 +500,18 @@ interface RTCEncodedVideoFrameMetadata {
500
500
  width?: number;
501
501
  }
502
502
 
503
- interface ReadableStreamReadDoneResult {
503
+ interface ReadableStreamGetReaderOptions {
504
+ /**
505
+ * Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
506
+ *
507
+ * This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
508
+ */
509
+ mode?: ReadableStreamReaderMode;
510
+ }
511
+
512
+ interface ReadableStreamReadDoneResult<T> {
504
513
  done: true;
505
- value?: undefined;
514
+ value?: T;
506
515
  }
507
516
 
508
517
  interface ReadableStreamReadValueResult<T> {
@@ -658,6 +667,21 @@ interface Transformer<I = any, O = any> {
658
667
  writableType?: undefined;
659
668
  }
660
669
 
670
+ interface UnderlyingByteSource {
671
+ autoAllocateChunkSize?: number;
672
+ cancel?: UnderlyingSourceCancelCallback;
673
+ pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
674
+ start?: (controller: ReadableByteStreamController) => any;
675
+ type: "bytes";
676
+ }
677
+
678
+ interface UnderlyingDefaultSource<R = any> {
679
+ cancel?: UnderlyingSourceCancelCallback;
680
+ pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
681
+ start?: (controller: ReadableStreamDefaultController<R>) => any;
682
+ type?: undefined;
683
+ }
684
+
661
685
  interface UnderlyingSink<W = any> {
662
686
  abort?: UnderlyingSinkAbortCallback;
663
687
  close?: UnderlyingSinkCloseCallback;
@@ -667,10 +691,11 @@ interface UnderlyingSink<W = any> {
667
691
  }
668
692
 
669
693
  interface UnderlyingSource<R = any> {
694
+ autoAllocateChunkSize?: number;
670
695
  cancel?: UnderlyingSourceCancelCallback;
671
696
  pull?: UnderlyingSourcePullCallback<R>;
672
697
  start?: UnderlyingSourceStartCallback<R>;
673
- type?: undefined;
698
+ type?: ReadableStreamType;
674
699
  }
675
700
 
676
701
  interface VideoColorSpaceInit {
@@ -756,6 +781,7 @@ declare var AbortSignal: {
756
781
  prototype: AbortSignal;
757
782
  new(): AbortSignal;
758
783
  abort(reason?: any): AbortSignal;
784
+ timeout(milliseconds: number): AbortSignal;
759
785
  };
760
786
 
761
787
  interface AbstractWorkerEventMap {
@@ -1316,6 +1342,13 @@ interface EXT_sRGB {
1316
1342
  interface EXT_shader_texture_lod {
1317
1343
  }
1318
1344
 
1345
+ interface EXT_texture_compression_bptc {
1346
+ readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
1347
+ readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
1348
+ readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
1349
+ readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
1350
+ }
1351
+
1319
1352
  interface EXT_texture_compression_rgtc {
1320
1353
  readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
1321
1354
  readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
@@ -1347,6 +1380,7 @@ declare var ErrorEvent: {
1347
1380
  interface Event {
1348
1381
  /** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
1349
1382
  readonly bubbles: boolean;
1383
+ /** @deprecated */
1350
1384
  cancelBubble: boolean;
1351
1385
  /** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
1352
1386
  readonly cancelable: boolean;
@@ -2030,13 +2064,13 @@ declare var IDBObjectStore: {
2030
2064
  };
2031
2065
 
2032
2066
  interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
2033
- "blocked": Event;
2067
+ "blocked": IDBVersionChangeEvent;
2034
2068
  "upgradeneeded": IDBVersionChangeEvent;
2035
2069
  }
2036
2070
 
2037
2071
  /** Also inherits methods from its parents IDBRequest and EventTarget. */
2038
2072
  interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
2039
- onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
2073
+ onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
2040
2074
  onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
2041
2075
  addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2042
2076
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -2292,6 +2326,7 @@ interface NavigatorID {
2292
2326
  readonly appName: string;
2293
2327
  /** @deprecated */
2294
2328
  readonly appVersion: string;
2329
+ /** @deprecated */
2295
2330
  readonly platform: string;
2296
2331
  /** @deprecated */
2297
2332
  readonly product: string;
@@ -2553,6 +2588,7 @@ interface PermissionStatusEventMap {
2553
2588
  }
2554
2589
 
2555
2590
  interface PermissionStatus extends EventTarget {
2591
+ readonly name: string;
2556
2592
  onchange: ((this: PermissionStatus, ev: Event) => any) | null;
2557
2593
  readonly state: PermissionState;
2558
2594
  addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
@@ -2664,6 +2700,7 @@ declare var PushSubscription: {
2664
2700
  /** Available only in secure contexts. */
2665
2701
  interface PushSubscriptionOptions {
2666
2702
  readonly applicationServerKey: ArrayBuffer | null;
2703
+ readonly userVisibleOnly: boolean;
2667
2704
  }
2668
2705
 
2669
2706
  declare var PushSubscriptionOptions: {
@@ -2711,7 +2748,9 @@ declare var ReadableByteStreamController: {
2711
2748
  interface ReadableStream<R = any> {
2712
2749
  readonly locked: boolean;
2713
2750
  cancel(reason?: any): Promise<void>;
2751
+ getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
2714
2752
  getReader(): ReadableStreamDefaultReader<R>;
2753
+ getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
2715
2754
  pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
2716
2755
  pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
2717
2756
  tee(): [ReadableStream<R>, ReadableStream<R>];
@@ -2719,11 +2758,13 @@ interface ReadableStream<R = any> {
2719
2758
 
2720
2759
  declare var ReadableStream: {
2721
2760
  prototype: ReadableStream;
2761
+ new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
2762
+ new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
2722
2763
  new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
2723
2764
  };
2724
2765
 
2725
2766
  interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
2726
- read(view: ArrayBufferView): Promise<ReadableStreamReadResult<ArrayBufferView>>;
2767
+ read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
2727
2768
  releaseLock(): void;
2728
2769
  }
2729
2770
 
@@ -2911,6 +2952,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
2911
2952
  "notificationclick": NotificationEvent;
2912
2953
  "notificationclose": NotificationEvent;
2913
2954
  "push": PushEvent;
2955
+ "pushsubscriptionchange": Event;
2914
2956
  }
2915
2957
 
2916
2958
  /** This ServiceWorker API interface represents the global execution context of a service worker. */
@@ -2924,6 +2966,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
2924
2966
  onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
2925
2967
  onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
2926
2968
  onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
2969
+ onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
2927
2970
  readonly registration: ServiceWorkerRegistration;
2928
2971
  readonly serviceWorker: ServiceWorker;
2929
2972
  skipWaiting(): Promise<void>;
@@ -3340,8 +3383,8 @@ interface WEBGL_lose_context {
3340
3383
  interface WEBGL_multi_draw {
3341
3384
  multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
3342
3385
  multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
3343
- multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
3344
- multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLint[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
3386
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
3387
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
3345
3388
  }
3346
3389
 
3347
3390
  interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
@@ -4739,35 +4782,39 @@ interface WebGLRenderingContextBase {
4739
4782
  getBufferParameter(target: GLenum, pname: GLenum): any;
4740
4783
  getContextAttributes(): WebGLContextAttributes | null;
4741
4784
  getError(): GLenum;
4785
+ getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
4742
4786
  getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
4743
4787
  getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
4744
4788
  getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
4745
4789
  getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
4746
- getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
4747
4790
  getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
4748
- getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
4749
4791
  getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
4792
+ getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
4793
+ getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
4794
+ getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
4795
+ getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
4750
4796
  getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
4797
+ getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
4798
+ getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
4799
+ getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
4800
+ getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
4801
+ getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
4802
+ getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
4803
+ getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
4751
4804
  getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
4752
4805
  getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
4753
4806
  getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
4754
4807
  getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
4755
4808
  getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
4756
4809
  getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
4810
+ getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
4757
4811
  getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
4812
+ getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
4758
4813
  getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
4814
+ getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
4759
4815
  getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
4760
4816
  getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
4761
- getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
4762
- getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
4763
- getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
4764
- getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
4765
- getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
4766
- getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
4767
- getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
4768
- getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
4769
- getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
4770
- getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
4817
+ getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
4771
4818
  getExtension(name: string): any;
4772
4819
  getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
4773
4820
  getParameter(pname: GLenum): any;
@@ -5896,13 +5943,13 @@ type NamedCurve = string;
5896
5943
  type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
5897
5944
  type PerformanceEntryList = PerformanceEntry[];
5898
5945
  type PushMessageDataInit = BufferSource | string;
5899
- type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
5900
- type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
5901
- type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
5946
+ type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
5947
+ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
5948
+ type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
5902
5949
  type RequestInfo = Request | string;
5903
5950
  type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
5904
5951
  type TimerHandler = string | Function;
5905
- type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
5952
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
5906
5953
  type Uint32List = Uint32Array | GLuint[];
5907
5954
  type VibratePattern = number | number[];
5908
5955
  type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
@@ -5936,6 +5983,8 @@ type PredefinedColorSpace = "display-p3" | "srgb";
5936
5983
  type PremultiplyAlpha = "default" | "none" | "premultiply";
5937
5984
  type PushEncryptionKeyName = "auth" | "p256dh";
5938
5985
  type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
5986
+ type ReadableStreamReaderMode = "byob";
5987
+ type ReadableStreamType = "bytes";
5939
5988
  type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
5940
5989
  type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
5941
5990
  type RequestCredentials = "include" | "omit" | "same-origin";
@@ -1427,7 +1427,6 @@
1427
1427
  "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Lewa strona operacji arytmetycznej musi być typu „any”, „number”, „bigint” lub typu wyliczeniowego.",
1428
1428
  "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Lewa strona wyrażenia przypisania nie może być opcjonalnym dostępem do właściwości.",
1429
1429
  "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Lewa strona wyrażenia przypisania musi być zmienną lub dostępem do właściwości.",
1430
- "The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360": "Lewa strona wyrażenia „in” musi być identyfikatorem prywatnym lub typem „any”, „string”, „number” lub „symbol”.",
1431
1430
  "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Lewa strona wyrażenia „instanceof” musi być typu „any”, typu obiektu lub parametrem typu.",
1432
1431
  "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Ustawienia regionalne używane przy wyświetlaniu komunikatów użytkownikowi (np. „pl-pl”)",
1433
1432
  "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Maksymalna głębokość zależności na potrzeby wyszukiwania w elemencie node_modules i ładownia plików JavaScript.",
@@ -1448,7 +1447,6 @@
1448
1447
  "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Zwracany typ funkcji lub metody asynchronicznej musi być globalnym typem Promise<T>. Czy chodziło Ci o typ „Promise<{0}>”?",
1449
1448
  "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Prawa strona instrukcji „for...in” musi zawierać typ „any”, typ obiektu lub parametr typu, a tutaj ma typ „{0}”.",
1450
1449
  "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Prawa strona operacji arytmetycznej musi być typu „any”, „number”, „bigint” lub typu wyliczeniowego.",
1451
- "The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361": "Typ pierwotny nie może znajdować się po prawej stronie wyrażenia „in”.",
1452
1450
  "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Prawa strona wyrażenia „instanceof” musi być typu „any” lub typu, który można przypisać do typu interfejsu „Function”.",
1453
1451
  "The_root_value_of_a_0_file_must_be_an_object_5092": "Wartość katalogu głównego pliku „{0}” musi być obiektem.",
1454
1452
  "The_shadowing_declaration_of_0_is_defined_here_18017": "Deklaracja przesłaniania „{0}” jest zdefiniowana tutaj",
@@ -1476,6 +1474,7 @@
1476
1474
  "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.",
1477
1475
  "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.",
1478
1476
  "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "To porównanie wydaje się niezamierzone, ponieważ typy „{0}” i „{1}” nie nakładają się na siebie.",
1477
+ "This_condition_will_always_return_0_2845": "This condition will always return '{0}'.",
1479
1478
  "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.",
1480
1479
  "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.",
1481
1480
  "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?",
@@ -1551,6 +1550,7 @@
1551
1550
  "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Nie można przypisać typu \"{0}\" do typu \"{1}\" o wartości \"exactOptionalPropertyTypes: true\". Rozważ dodanie elementu \"undefined\" do typu elementu docelowego.",
1552
1551
  "Type_0_is_not_comparable_to_type_1_2678": "Typu „{0}” nie można porównać z typem „{1}”.",
1553
1552
  "Type_0_is_not_generic_2315": "Typ „{0}” nie jest ogólny.",
1553
+ "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "Typ „{0}” może reprezentować wartość pierwotną, co nie jest dozwolone jako prawy operand operatora „in”.",
1554
1554
  "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "Typ „{0}” musi zawierać metodę „[Symbol.asyncIterator]()” zwracającą iterator asynchroniczny.",
1555
1555
  "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "Typ „{0}” musi zawierać metodę „[Symbol.iterator]()” zwracającą iterator.",
1556
1556
  "Type_0_provides_no_match_for_the_signature_1_2658": "Typ „{0}” nie udostępnia dopasowania dla sygnatury „{1}”.",
@@ -1649,6 +1649,8 @@
1649
1649
  "Updating_output_of_project_0_6373": "Trwa aktualizowanie danych wyjściowych projektu „{0}”...",
1650
1650
  "Updating_output_timestamps_of_project_0_6359": "Trwa aktualizowanie sygnatury czasowej danych wyjściowych projektu „{0}”...",
1651
1651
  "Updating_unchanged_output_timestamps_of_project_0_6371": "Trwa aktualizowanie niezmienionych sygnatur czasowych danych wyjściowych projektu „{0}”...",
1652
+ "Use_0_95174": "Use `{0}`.",
1653
+ "Use_Number_isNaN_in_all_conditions_95175": "Use `Number.isNaN` in all conditions.",
1652
1654
  "Use_element_access_for_0_95145": "Użyj dostępu do elementu w przypadku elementu „{0}”",
1653
1655
  "Use_element_access_for_all_undeclared_properties_95146": "Użyj dostępu do elementu w przypadku wszystkich niezadeklarowanych właściwości.",
1654
1656
  "Use_synthetic_default_member_95016": "Użyj syntetycznej składowej „default”.",
@@ -1427,7 +1427,6 @@
1427
1427
  "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "O lado esquerdo de uma operação aritmética deve ser do tipo 'any', 'number', 'bigint' ou um tipo enumerado.",
1428
1428
  "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "O lado esquerdo de uma expressão de atribuição pode não ser um acesso opcional de propriedade.",
1429
1429
  "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "O lado esquerdo de uma expressão de atribuição deve ser uma variável ou um acesso à propriedade.",
1430
- "The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360": "O lado esquerdo de uma expressão 'em' deve ser um identificador privado ou do tipo 'qualquer', 'cadeia de caracteres', 'número' ou 'símbolo'.",
1431
1430
  "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "O lado esquerdo de uma expressão 'instanceof' deve ser do tipo 'any', um tipo de objeto ou um parâmetro de tipo.",
1432
1431
  "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "O local usado ao exibir mensagens ao usuário (por exemplo, 'en-us')",
1433
1432
  "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "A profundidade máxima de dependência a ser pesquisada em arquivos node_modules e de carregamento de JavaScript.",
@@ -1448,7 +1447,6 @@
1448
1447
  "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "O tipo de retorno de uma função assíncrona ou método precisa ser o tipo Promise<T> global. Você quis escrever 'Promise<{0}>'?",
1449
1448
  "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "O lado direito de uma instrução 'for...in' deve ser do tipo 'any', um tipo de objeto ou um parâmetro de tipo, mas aqui ele tem o tipo '{0}'.",
1450
1449
  "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "O lado direito de uma operação aritmética deve ser do tipo 'any', 'number', 'bigint' ou um tipo enumerado.",
1451
- "The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361": "O lado direito de uma expressão 'in' não pode ser um primitivo.",
1452
1450
  "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "O lado direito de uma expressão 'instanceof' deve ser do tipo 'any' ou de um tipo que pode ser atribuído ao tipo de interface 'Function'.",
1453
1451
  "The_root_value_of_a_0_file_must_be_an_object_5092": "O valor raiz de um arquivo '{0}' precisa ser um objeto.",
1454
1452
  "The_shadowing_declaration_of_0_is_defined_here_18017": "A declaração de sombreamento de '{0}' é definida aqui",
@@ -1476,6 +1474,7 @@
1476
1474
  "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "A propriedade '{0}' da marca desse JSX espera um único filho do tipo '{1}', mas vários filhos foram fornecidos.",
1477
1475
  "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "A propriedade '{0}' da marca desse JSX espera o tipo '{1}' que requer vários filhos, mas somente um único filho foi fornecido.",
1478
1476
  "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Esta comparação parece não ser intencional porque os tipos '{0}' e '{1}' não têm sobreposição.",
1477
+ "This_condition_will_always_return_0_2845": "Esta condição sempre retornará '{0}'.",
1479
1478
  "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Essa condição sempre retornará '{0}', pois o JavaScript compara objetos por referência, não por valor.",
1480
1479
  "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Esta condição sempre retornará verdadeiro, já que este '{0}' está sempre definido.",
1481
1480
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Esta condição sempre retornará verdadeira, uma vez que esta função foi sempre definida. Você pretendia chamá-la em vez disso?",
@@ -1551,6 +1550,7 @@
1551
1550
  "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "O tipo '{0}' não pode ser atribuído ao tipo '{1}' com 'exactOptionalPropertyTypes: true'. Considere adicionar 'undefined' ao tipo do destino.",
1552
1551
  "Type_0_is_not_comparable_to_type_1_2678": "O tipo '{0}' não pode ser comparável ao tipo '{1}'.",
1553
1552
  "Type_0_is_not_generic_2315": "O tipo '{0}' não é genérico.",
1553
+ "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "O tipo '{0}' pode representar um valor primitivo, que não é permitido como operando direito do operador 'in'.",
1554
1554
  "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "O tipo '{0}' deve ter um método '[Symbol.asyncIterator]()' que retorna um iterador assíncrono.",
1555
1555
  "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "O tipo '{0}' deve ter um método '[Symbol.iterator]()' que retorna um iterador.",
1556
1556
  "Type_0_provides_no_match_for_the_signature_1_2658": "O tipo '{0}' fornece nenhuma correspondência para a assinatura '{1}'.",
@@ -1649,6 +1649,8 @@
1649
1649
  "Updating_output_of_project_0_6373": "Atualizando a saída do projeto '{0}'...",
1650
1650
  "Updating_output_timestamps_of_project_0_6359": "Atualizando os carimbos de data/hora de saída do projeto '{0}'...",
1651
1651
  "Updating_unchanged_output_timestamps_of_project_0_6371": "Atualizando os carimbos de data/hora de saída inalterados do projeto '{0}'...",
1652
+ "Use_0_95174": "Use `{0}`.",
1653
+ "Use_Number_isNaN_in_all_conditions_95175": "Use `Number.isNaN` em todas as condições.",
1652
1654
  "Use_element_access_for_0_95145": "Usar o acesso de elemento para '{0}'",
1653
1655
  "Use_element_access_for_all_undeclared_properties_95146": "Usar o acesso de elemento para todas as propriedades não declaradas.",
1654
1656
  "Use_synthetic_default_member_95016": "Use o membro sintético 'padrão'.",
@@ -1427,7 +1427,6 @@
1427
1427
  "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Левый операнд арифметической операции должен иметь тип \"any\", \"number\", \"bigint\" или тип перечисления.",
1428
1428
  "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Левая часть выражения присваивания не может быть обращением к необязательному свойству.",
1429
1429
  "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "В левой части выражения назначения должна быть переменная или доступ к свойству.",
1430
- "The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360": "Левый операнд выражения \"in\" должен быть закрытым идентификатором или иметь тип any, string, number или symbol.",
1431
1430
  "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "Левый операнд выражения instanceof должен иметь тип any, тип объекта или параметр типа.",
1432
1431
  "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Языковой стандарт, который используется при отображении сообщений пользователю (например, en-us)",
1433
1432
  "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "Максимальная глубина зависимостей для поиска в папке node_modules и загрузки файлов JavaScript.",
@@ -1448,7 +1447,6 @@
1448
1447
  "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Возвращаемое значение асинхронной функции или метода должно иметь глобальный тип Promise<T>. Вы имели в виду \"Promise<{0}>\"?",
1449
1448
  "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "Правая часть оператора \"for…in\" должна иметь тип \"any\", тип объекта или быть параметром типа, однако указан тип \"{0}\".",
1450
1449
  "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Правый операнд арифметической операции должен иметь тип \"any\", \"number\", \"bigint\" или тип перечисления.",
1451
- "The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361": "Правый операнд выражения in не должен быть примитивом.",
1452
1450
  "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "Правый операнд выражения instanceof должен иметь тип any или тип, который можно назначить типу интерфейса Function.",
1453
1451
  "The_root_value_of_a_0_file_must_be_an_object_5092": "Корневое значение файла \"{0}\" должно быть объектом.",
1454
1452
  "The_shadowing_declaration_of_0_is_defined_here_18017": "Здесь определено объявление затемнения \"{0}\"",
@@ -1476,6 +1474,7 @@
1476
1474
  "This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746": "Свойство \"{0}\" этого тега JSX ожидает один дочерний объект типа \"{1}\", однако было предоставлено несколько дочерних объектов.",
1477
1475
  "This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745": "Свойство \"{0}\" этого тега JSX ожидает тип \"{1}\", требующий несколько дочерних объектов, однако был предоставлен только один дочерний объект.",
1478
1476
  "This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367": "Это сравнение кажется непреднамеренным, поскольку типы \"{0}\" и \"{1}\" не перекрываются.",
1477
+ "This_condition_will_always_return_0_2845": "Это условие всегда возвращает \"{0}\".",
1479
1478
  "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839": "Это условие всегда будет возвращать ''{0}'', так как JavaScript сравнивает объекты по ссылке, а не по значению.",
1480
1479
  "This_condition_will_always_return_true_since_this_0_is_always_defined_2801": "Это условие всегда будет возвращать значение true, поскольку функция \"{0}\" всегда определена.",
1481
1480
  "This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774": "Это условие будет всегда возвращать значение true, поскольку функция всегда определена. Возможно, вы хотите вызвать ее?",
@@ -1551,6 +1550,7 @@
1551
1550
  "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Невозможно назначить тип \"{0}\" типу \"{1}\", когда свойство \"exactOptionalPropertyTypes\" имеет значение \"true\". Рассмотрите возможность добавления типа \"undefined\" к типу цели.",
1552
1551
  "Type_0_is_not_comparable_to_type_1_2678": "Тип \"{0}\" невозможно сравнить с типом \"{1}\".",
1553
1552
  "Type_0_is_not_generic_2315": "Тип \"{0}\" не является универсальным.",
1553
+ "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "Тип \"{0}\" может представлять примитивное значение, не разрешенное в качестве правого операнда оператора \"in\".",
1554
1554
  "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "Тип \"{0}\" должен иметь метод \"[Symbol.asyncIterator]()\", который возвращает асинхронный итератор.",
1555
1555
  "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "Тип \"{0}\" должен иметь метод \"[Symbol.iterator]()\", который возвращает итератор.",
1556
1556
  "Type_0_provides_no_match_for_the_signature_1_2658": "Тип \"{0}\" не предоставляет соответствия для сигнатуры \"{1}\".",
@@ -1649,6 +1649,8 @@
1649
1649
  "Updating_output_of_project_0_6373": "Обновление выходных данных проекта \"{0}\"...",
1650
1650
  "Updating_output_timestamps_of_project_0_6359": "Обновление меток времени в выходных данных проекта \"{0}\"...",
1651
1651
  "Updating_unchanged_output_timestamps_of_project_0_6371": "Обновление меток времени в неизменившихся выходных данных проекта \"{0}\"...",
1652
+ "Use_0_95174": "Использовать \"{0}\".",
1653
+ "Use_Number_isNaN_in_all_conditions_95175": "Использовать \"Number.isNaN\" во всех условиях.",
1652
1654
  "Use_element_access_for_0_95145": "Использовать доступ к элементам для \"{0}\".",
1653
1655
  "Use_element_access_for_all_undeclared_properties_95146": "Использовать доступ к элементам для всех необъявленных свойств.",
1654
1656
  "Use_synthetic_default_member_95016": "Используйте искусственный элемент \"default\".",
@@ -1427,7 +1427,6 @@
1427
1427
  "The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362": "Aritmetik işlemin sol tarafı, 'any', 'number', 'bigint' veya bir sabit listesi türünde olmalıdır.",
1428
1428
  "The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779": "Atama ifadesinin sol tarafı, isteğe bağlı bir özellik erişimi olamaz.",
1429
1429
  "The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364": "Atama ifadesinin sol tarafında bir değişken veya özellik erişimi bulunmalıdır.",
1430
- "The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360": "'in' ifadesinin sol tarafı özel bir tanımlayıcı veya 'any', 'string', 'number' ya da 'symbol' türünde olmalıdır.",
1431
1430
  "The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358": "'instanceof' ifadesinin sol tarafı 'any' türünde, bir nesne türü veya tür parametresi olmalıdır.",
1432
1431
  "The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156": "Kullanıcıya ileti görüntülenirken kullanılacak yerel ayar (örn. 'tr-tr')",
1433
1432
  "The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136": "node_modules altında arama yapmak ve JavaScript dosyalarını yüklemek için en yüksek bağımlılık derinliği.",
@@ -1448,7 +1447,6 @@
1448
1447
  "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064": "Asenkron bir işlevin ya da metodun dönüş türü, genel Promise<T> türü olmalıdır. 'Promise<{0}>' yazmak mı istediniz?",
1449
1448
  "The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407": "'for...in' deyiminin sağ tarafı 'any' türünde, bir nesne türü veya tür parametresi olmalıdır ancak burada '{0}' türüne sahip.",
1450
1449
  "The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363": "Aritmetik işlemin sağ tarafı, 'any', 'number', 'bigint' veya bir sabit listesi türünde olmalıdır.",
1451
- "The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361": "'in' ifadesinin sağ tarafı basit olmamalıdır.",
1452
1450
  "The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359": "'instanceof' ifadesinin sağ tarafı 'any' türünde veya 'Function' arabirim türüne atanabilir bir türde olmalıdır.",
1453
1451
  "The_root_value_of_a_0_file_must_be_an_object_5092": "'{0}' dosyasının kök değeri bir nesne olmalıdır.",
1454
1452
  "The_shadowing_declaration_of_0_is_defined_here_18017": "'{0}' için gölgeleme bildirimi burada tanımlanır",
@@ -1551,6 +1549,7 @@
1551
1549
  "Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "'{0}' türü, '{1}' türüne 'exactOptionalPropertyTypes: true' ile atanamaz. Hedef türüne 'undefined' eklemeyi deneyin.",
1552
1550
  "Type_0_is_not_comparable_to_type_1_2678": "'{0}' türü '{1}' türüyle karşılaştırılamaz.",
1553
1551
  "Type_0_is_not_generic_2315": "'{0}' türü genel değil.",
1552
+ "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "'{0}' tipi, 'in' operatörünün doğru işleneni olarak izin verilmeyen temel bir değeri temsil edebilir.",
1554
1553
  "Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "'{0}' türünün, zaman uyumsuz bir yineleyici döndüren bir '[Symbol.asyncIterator]()' metoduna sahip olması gerekir.",
1555
1554
  "Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "'{0}' türünün, bir yineleyici döndüren '[Symbol.iterator]()' metoduna sahip olması gerekir.",
1556
1555
  "Type_0_provides_no_match_for_the_signature_1_2658": "'{0}' türü, '{1}' imzası için eşleşme sağlamıyor.",
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.9";
72
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220921");
72
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220923");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -37084,6 +37084,7 @@ var ts;
37084
37084
  }
37085
37085
  }
37086
37086
  function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
37087
+ var _a;
37087
37088
  var candidate = ts.normalizePath(ts.combinePaths(nodeModulesDirectory, moduleName));
37088
37089
  var packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state);
37089
37090
  if (!(state.features & NodeResolutionFeatures.Exports)) {
@@ -37096,12 +37097,7 @@ var ts;
37096
37097
  return withPackageId(packageInfo, fromDirectory);
37097
37098
  }
37098
37099
  }
37099
- var _a = parsePackageName(moduleName), packageName = _a.packageName, rest = _a.rest;
37100
37100
  var loader = function (extensions, candidate, onlyRecordFailures, state) {
37101
- var _a;
37102
- if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & NodeResolutionFeatures.Exports) {
37103
- return (_a = loadModuleFromExports(packageInfo, extensions, ts.combinePaths(".", rest), state, cache, redirectedReference)) === null || _a === void 0 ? void 0 : _a.value;
37104
- }
37105
37101
  var pathAndExtension = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
37106
37102
  loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo && packageInfo.contents.packageJsonContent, packageInfo && packageInfo.contents.versionPaths);
37107
37103
  if (!pathAndExtension && packageInfo
@@ -37111,18 +37107,22 @@ var ts;
37111
37107
  }
37112
37108
  return withPackageId(packageInfo, pathAndExtension);
37113
37109
  };
37110
+ var _b = parsePackageName(moduleName), packageName = _b.packageName, rest = _b.rest;
37111
+ var packageDirectory = ts.combinePaths(nodeModulesDirectory, packageName);
37114
37112
  if (rest !== "") {
37115
- var packageDirectory = ts.combinePaths(nodeModulesDirectory, packageName);
37116
37113
  packageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);
37117
- if (packageInfo && packageInfo.contents.versionPaths) {
37118
- if (state.traceEnabled) {
37119
- trace(state.host, ts.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, packageInfo.contents.versionPaths.version, ts.version, rest);
37120
- }
37121
- var packageDirectoryExists = nodeModulesDirectoryExists && ts.directoryProbablyExists(packageDirectory, state.host);
37122
- var fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, packageInfo.contents.versionPaths.paths, undefined, loader, !packageDirectoryExists, state);
37123
- if (fromPaths) {
37124
- return fromPaths.value;
37125
- }
37114
+ }
37115
+ if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & NodeResolutionFeatures.Exports) {
37116
+ return (_a = loadModuleFromExports(packageInfo, extensions, ts.combinePaths(".", rest), state, cache, redirectedReference)) === null || _a === void 0 ? void 0 : _a.value;
37117
+ }
37118
+ if (rest !== "" && packageInfo && packageInfo.contents.versionPaths) {
37119
+ if (state.traceEnabled) {
37120
+ trace(state.host, ts.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, packageInfo.contents.versionPaths.version, ts.version, rest);
37121
+ }
37122
+ var packageDirectoryExists = nodeModulesDirectoryExists && ts.directoryProbablyExists(packageDirectory, state.host);
37123
+ var fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, packageInfo.contents.versionPaths.paths, undefined, loader, !packageDirectoryExists, state);
37124
+ if (fromPaths) {
37125
+ return fromPaths.value;
37126
37126
  }
37127
37127
  }
37128
37128
  return loader(extensions, candidate, !nodeModulesDirectoryExists, state);
@@ -45898,6 +45898,7 @@ var ts;
45898
45898
  && symbol.escapedName !== "export="
45899
45899
  && !(symbol.flags & 4194304)
45900
45900
  && !(symbol.flags & 32)
45901
+ && !(symbol.flags & 8192)
45901
45902
  && !isConstMergedWithNSPrintableAsSignatureMerge) {
45902
45903
  if (propertyAsAlias) {
45903
45904
  var createdExport = serializeMaybeAliasAssignment(symbol);
@@ -95294,6 +95295,7 @@ var ts;
95294
95295
  writeTrailingSemicolon();
95295
95296
  }
95296
95297
  function emitExportDeclaration(node) {
95298
+ emitModifiers(node, node.modifiers);
95297
95299
  var nextPos = emitTokenWithComment(93, node.pos, writeKeyword, node);
95298
95300
  writeSpace();
95299
95301
  if (node.isTypeOnly) {
@@ -98344,7 +98346,7 @@ var ts;
98344
98346
  return { file: file, pos: pos, end: end, packageId: packageId };
98345
98347
  }
98346
98348
  ts.getReferencedFileLocation = getReferencedFileLocation;
98347
- function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
98349
+ function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {
98348
98350
  if (!program || (hasChangedAutomaticTypeDirectiveNames === null || hasChangedAutomaticTypeDirectiveNames === void 0 ? void 0 : hasChangedAutomaticTypeDirectiveNames()))
98349
98351
  return false;
98350
98352
  if (!ts.arrayIsEqualTo(program.getRootFileNames(), rootFileNames))
@@ -98364,7 +98366,7 @@ var ts;
98364
98366
  return true;
98365
98367
  function sourceFileNotUptoDate(sourceFile) {
98366
98368
  return !sourceFileVersionUptoDate(sourceFile) ||
98367
- hasInvalidatedResolution(sourceFile.path);
98369
+ hasInvalidatedResolutions(sourceFile.path);
98368
98370
  }
98369
98371
  function sourceFileVersionUptoDate(sourceFile) {
98370
98372
  return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName);
@@ -98572,7 +98574,7 @@ var ts;
98572
98574
  var moduleResolutionCache;
98573
98575
  var typeReferenceDirectiveResolutionCache;
98574
98576
  var actualResolveModuleNamesWorker;
98575
- var hasInvalidatedResolution = host.hasInvalidatedResolution || ts.returnFalse;
98577
+ var hasInvalidatedResolutions = host.hasInvalidatedResolutions || ts.returnFalse;
98576
98578
  if (host.resolveModuleNames) {
98577
98579
  actualResolveModuleNamesWorker = function (moduleNames, containingFile, containingFileName, reusedNames, redirectedReference) { return host.resolveModuleNames(ts.Debug.checkEachDefined(moduleNames), containingFileName, reusedNames, redirectedReference, options, containingFile).map(function (resolved) {
98578
98580
  if (!resolved || resolved.extension !== undefined) {
@@ -98947,7 +98949,7 @@ var ts;
98947
98949
  var predictedToResolveToAmbientModuleMarker = {};
98948
98950
  for (var i = 0; i < moduleNames.length; i++) {
98949
98951
  var moduleName = moduleNames[i];
98950
- if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) {
98952
+ if (file === oldSourceFile && !hasInvalidatedResolutions(oldSourceFile.path)) {
98951
98953
  var oldResolvedModule = ts.getResolvedModule(oldSourceFile, moduleName, getModeForResolutionAtIndex(oldSourceFile, i));
98952
98954
  if (oldResolvedModule) {
98953
98955
  if (ts.isTraceEnabled(options, host)) {
@@ -99132,7 +99134,7 @@ var ts;
99132
99134
  }
99133
99135
  modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });
99134
99136
  }
99135
- else if (hasInvalidatedResolution(oldSourceFile.path)) {
99137
+ else if (hasInvalidatedResolutions(oldSourceFile.path)) {
99136
99138
  structureIsReused = 1;
99137
99139
  modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });
99138
99140
  }
@@ -102653,7 +102655,7 @@ var ts;
102653
102655
  invalidateResolutionOfFile: invalidateResolutionOfFile,
102654
102656
  invalidateResolutionsOfFailedLookupLocations: invalidateResolutionsOfFailedLookupLocations,
102655
102657
  setFilesWithInvalidatedNonRelativeUnresolvedImports: setFilesWithInvalidatedNonRelativeUnresolvedImports,
102656
- createHasInvalidatedResolution: createHasInvalidatedResolution,
102658
+ createHasInvalidatedResolutions: createHasInvalidatedResolutions,
102657
102659
  isFileWithInvalidatedNonRelativeUnresolvedImports: isFileWithInvalidatedNonRelativeUnresolvedImports,
102658
102660
  updateTypeRootsWatch: updateTypeRootsWatch,
102659
102661
  closeTypeRootsWatch: closeTypeRootsWatch,
@@ -102707,15 +102709,12 @@ var ts;
102707
102709
  var value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path);
102708
102710
  return !!value && !!value.length;
102709
102711
  }
102710
- function createHasInvalidatedResolution(forceAllFilesAsInvalidated) {
102712
+ function createHasInvalidatedResolutions(customHasInvalidatedResolutions) {
102711
102713
  invalidateResolutionsOfFailedLookupLocations();
102712
- if (forceAllFilesAsInvalidated) {
102713
- filesWithInvalidatedResolutions = undefined;
102714
- return ts.returnTrue;
102715
- }
102716
102714
  var collected = filesWithInvalidatedResolutions;
102717
102715
  filesWithInvalidatedResolutions = undefined;
102718
- return function (path) { return (!!collected && collected.has(path)) ||
102716
+ return function (path) { return customHasInvalidatedResolutions(path) ||
102717
+ !!(collected === null || collected === void 0 ? void 0 : collected.has(path)) ||
102719
102718
  isFileWithInvalidatedNonRelativeUnresolvedImports(path); };
102720
102719
  }
102721
102720
  function startCachingPerDirectoryResolution() {
@@ -104805,6 +104804,9 @@ var ts;
104805
104804
  ts.maybeBind(host, host.getModuleResolutionCache) :
104806
104805
  (function () { return resolutionCache.getModuleResolutionCache(); });
104807
104806
  var userProvidedResolution = !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;
104807
+ var customHasInvalidatedResolutions = userProvidedResolution ?
104808
+ ts.maybeBind(host, host.hasInvalidatedResolutions) || ts.returnTrue :
104809
+ ts.returnFalse;
104808
104810
  builderProgram = readBuilderProgram(compilerOptions, compilerHost);
104809
104811
  synchronizeProgram();
104810
104812
  watchConfigFileWildCardDirectories();
@@ -104868,9 +104870,9 @@ var ts;
104868
104870
  resolutionCache.clear();
104869
104871
  }
104870
104872
  }
104871
- var hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution);
104873
+ var hasInvalidatedResolutions = resolutionCache.createHasInvalidatedResolutions(customHasInvalidatedResolutions);
104872
104874
  var _a = ts.changeCompilerHostLikeToUseCache(compilerHost, toPath), originalReadFile = _a.originalReadFile, originalFileExists = _a.originalFileExists, originalDirectoryExists = _a.originalDirectoryExists, originalCreateDirectory = _a.originalCreateDirectory, originalWriteFile = _a.originalWriteFile;
104873
- if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
104875
+ if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, function (fileName) { return compilerHost.fileExists(fileName); }, hasInvalidatedResolutions, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {
104874
104876
  if (hasChangedConfigFileParsingErrors) {
104875
104877
  if (reportFileChangeDetectedOnCreateProgram) {
104876
104878
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
@@ -104883,7 +104885,7 @@ var ts;
104883
104885
  if (reportFileChangeDetectedOnCreateProgram) {
104884
104886
  reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);
104885
104887
  }
104886
- createNewProgram(hasInvalidatedResolution);
104888
+ createNewProgram(hasInvalidatedResolutions);
104887
104889
  }
104888
104890
  reportFileChangeDetectedOnCreateProgram = false;
104889
104891
  if (host.afterProgramCreate && program !== builderProgram) {
@@ -104896,7 +104898,7 @@ var ts;
104896
104898
  compilerHost.writeFile = originalWriteFile;
104897
104899
  return builderProgram;
104898
104900
  }
104899
- function createNewProgram(hasInvalidatedResolution) {
104901
+ function createNewProgram(hasInvalidatedResolutions) {
104900
104902
  writeLog("CreatingProgramWith::");
104901
104903
  writeLog(" roots: ".concat(JSON.stringify(rootFileNames)));
104902
104904
  writeLog(" options: ".concat(JSON.stringify(compilerOptions)));
@@ -104906,7 +104908,7 @@ var ts;
104906
104908
  hasChangedCompilerOptions = false;
104907
104909
  hasChangedConfigFileParsingErrors = false;
104908
104910
  resolutionCache.startCachingPerDirectoryResolution();
104909
- compilerHost.hasInvalidatedResolution = hasInvalidatedResolution;
104911
+ compilerHost.hasInvalidatedResolutions = hasInvalidatedResolutions;
104910
104912
  compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;
104911
104913
  var oldProgram = getCurrentProgram();
104912
104914
  builderProgram = createProgram(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);