typescript 4.9.0-dev.20220921 → 4.9.0-dev.20220922
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/de/diagnosticMessages.generated.json +1 -2
- package/lib/es/diagnosticMessages.generated.json +1 -2
- package/lib/ja/diagnosticMessages.generated.json +1 -2
- package/lib/ko/diagnosticMessages.generated.json +1 -2
- package/lib/lib.dom.d.ts +199 -58
- package/lib/lib.webworker.d.ts +73 -24
- package/lib/pt-br/diagnosticMessages.generated.json +1 -2
- package/lib/ru/diagnosticMessages.generated.json +1 -2
- package/lib/tr/diagnosticMessages.generated.json +1 -2
- package/lib/tsc.js +18 -16
- package/lib/tsserver.js +26 -20
- package/lib/tsserverlibrary.js +26 -20
- package/lib/typescript.js +26 -20
- package/lib/typescriptServices.js +26 -20
- package/lib/typingsInstaller.js +21 -19
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -2
- package/package.json +1 -1
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -500,9 +500,18 @@ interface RTCEncodedVideoFrameMetadata {
|
|
|
500
500
|
width?: number;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
-
interface
|
|
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?:
|
|
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?:
|
|
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":
|
|
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:
|
|
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:
|
|
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 |
|
|
3344
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array |
|
|
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: "
|
|
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 =
|
|
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": "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",
|
|
@@ -1551,6 +1549,7 @@
|
|
|
1551
1549
|
"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
1550
|
"Type_0_is_not_comparable_to_type_1_2678": "O tipo '{0}' não pode ser comparável ao tipo '{1}'.",
|
|
1553
1551
|
"Type_0_is_not_generic_2315": "O tipo '{0}' não é genérico.",
|
|
1552
|
+
"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
1553
|
"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
1554
|
"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
1555
|
"Type_0_provides_no_match_for_the_signature_1_2658": "O tipo '{0}' fornece nenhuma correspondência para a assinatura '{1}'.",
|
|
@@ -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}\"",
|
|
@@ -1551,6 +1549,7 @@
|
|
|
1551
1549
|
"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412": "Невозможно назначить тип \"{0}\" типу \"{1}\", когда свойство \"exactOptionalPropertyTypes\" имеет значение \"true\". Рассмотрите возможность добавления типа \"undefined\" к типу цели.",
|
|
1552
1550
|
"Type_0_is_not_comparable_to_type_1_2678": "Тип \"{0}\" невозможно сравнить с типом \"{1}\".",
|
|
1553
1551
|
"Type_0_is_not_generic_2315": "Тип \"{0}\" не является универсальным.",
|
|
1552
|
+
"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638": "Тип \"{0}\" может представлять примитивное значение, не разрешенное в качестве правого операнда оператора \"in\".",
|
|
1554
1553
|
"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504": "Тип \"{0}\" должен иметь метод \"[Symbol.asyncIterator]()\", который возвращает асинхронный итератор.",
|
|
1555
1554
|
"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488": "Тип \"{0}\" должен иметь метод \"[Symbol.iterator]()\", который возвращает итератор.",
|
|
1556
1555
|
"Type_0_provides_no_match_for_the_signature_1_2658": "Тип \"{0}\" не предоставляет соответствия для сигнатуры \"{1}\".",
|
|
@@ -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.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220922");
|
|
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
|
-
|
|
37118
|
-
|
|
37119
|
-
|
|
37120
|
-
|
|
37121
|
-
|
|
37122
|
-
|
|
37123
|
-
|
|
37124
|
-
|
|
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) {
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220922");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -45253,6 +45253,7 @@ var ts;
|
|
|
45253
45253
|
}
|
|
45254
45254
|
}
|
|
45255
45255
|
function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state, cache, redirectedReference) {
|
|
45256
|
+
var _a;
|
|
45256
45257
|
var candidate = ts.normalizePath(ts.combinePaths(nodeModulesDirectory, moduleName));
|
|
45257
45258
|
// First look for a nested package.json, as in `node_modules/foo/bar/package.json`.
|
|
45258
45259
|
var packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state);
|
|
@@ -45267,13 +45268,7 @@ var ts;
|
|
|
45267
45268
|
return withPackageId(packageInfo, fromDirectory);
|
|
45268
45269
|
}
|
|
45269
45270
|
}
|
|
45270
|
-
var _a = parsePackageName(moduleName), packageName = _a.packageName, rest = _a.rest;
|
|
45271
45271
|
var loader = function (extensions, candidate, onlyRecordFailures, state) {
|
|
45272
|
-
var _a;
|
|
45273
|
-
// package exports are higher priority than file/directory lookups (and, if there's exports present, blocks them)
|
|
45274
|
-
if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & NodeResolutionFeatures.Exports) {
|
|
45275
|
-
return (_a = loadModuleFromExports(packageInfo, extensions, ts.combinePaths(".", rest), state, cache, redirectedReference)) === null || _a === void 0 ? void 0 : _a.value;
|
|
45276
|
-
}
|
|
45277
45272
|
var pathAndExtension = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||
|
|
45278
45273
|
loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo && packageInfo.contents.packageJsonContent, packageInfo && packageInfo.contents.versionPaths);
|
|
45279
45274
|
if (!pathAndExtension && packageInfo
|
|
@@ -45286,19 +45281,24 @@ var ts;
|
|
|
45286
45281
|
}
|
|
45287
45282
|
return withPackageId(packageInfo, pathAndExtension);
|
|
45288
45283
|
};
|
|
45289
|
-
|
|
45290
|
-
|
|
45291
|
-
|
|
45284
|
+
var _b = parsePackageName(moduleName), packageName = _b.packageName, rest = _b.rest;
|
|
45285
|
+
var packageDirectory = ts.combinePaths(nodeModulesDirectory, packageName);
|
|
45286
|
+
if (rest !== "") {
|
|
45287
|
+
// Previous `packageInfo` may have been from a nested package.json; ensure we have the one from the package root now.
|
|
45292
45288
|
packageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);
|
|
45293
|
-
|
|
45294
|
-
|
|
45295
|
-
|
|
45296
|
-
|
|
45297
|
-
|
|
45298
|
-
|
|
45299
|
-
|
|
45300
|
-
|
|
45301
|
-
|
|
45289
|
+
}
|
|
45290
|
+
// package exports are higher priority than file/directory/typesVersions lookups and (and, if there's exports present, blocks them)
|
|
45291
|
+
if (packageInfo && packageInfo.contents.packageJsonContent.exports && state.features & NodeResolutionFeatures.Exports) {
|
|
45292
|
+
return (_a = loadModuleFromExports(packageInfo, extensions, ts.combinePaths(".", rest), state, cache, redirectedReference)) === null || _a === void 0 ? void 0 : _a.value;
|
|
45293
|
+
}
|
|
45294
|
+
if (rest !== "" && packageInfo && packageInfo.contents.versionPaths) {
|
|
45295
|
+
if (state.traceEnabled) {
|
|
45296
|
+
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);
|
|
45297
|
+
}
|
|
45298
|
+
var packageDirectoryExists = nodeModulesDirectoryExists && ts.directoryProbablyExists(packageDirectory, state.host);
|
|
45299
|
+
var fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, packageInfo.contents.versionPaths.paths, /*pathPatterns*/ undefined, loader, !packageDirectoryExists, state);
|
|
45300
|
+
if (fromPaths) {
|
|
45301
|
+
return fromPaths.value;
|
|
45302
45302
|
}
|
|
45303
45303
|
}
|
|
45304
45304
|
return loader(extensions, candidate, !nodeModulesDirectoryExists, state);
|
|
@@ -55479,6 +55479,7 @@ var ts;
|
|
|
55479
55479
|
&& symbol.escapedName !== "export=" /* InternalSymbolName.ExportEquals */
|
|
55480
55480
|
&& !(symbol.flags & 4194304 /* SymbolFlags.Prototype */)
|
|
55481
55481
|
&& !(symbol.flags & 32 /* SymbolFlags.Class */)
|
|
55482
|
+
&& !(symbol.flags & 8192 /* SymbolFlags.Method */)
|
|
55482
55483
|
&& !isConstMergedWithNSPrintableAsSignatureMerge) {
|
|
55483
55484
|
if (propertyAsAlias) {
|
|
55484
55485
|
var createdExport = serializeMaybeAliasAssignment(symbol);
|
|
@@ -115413,6 +115414,7 @@ var ts;
|
|
|
115413
115414
|
writeTrailingSemicolon();
|
|
115414
115415
|
}
|
|
115415
115416
|
function emitExportDeclaration(node) {
|
|
115417
|
+
emitModifiers(node, node.modifiers);
|
|
115416
115418
|
var nextPos = emitTokenWithComment(93 /* SyntaxKind.ExportKeyword */, node.pos, writeKeyword, node);
|
|
115417
115419
|
writeSpace();
|
|
115418
115420
|
if (node.isTypeOnly) {
|
|
@@ -146341,6 +146343,10 @@ var ts;
|
|
|
146341
146343
|
pushSelectionCommentRange(comment.pos, comment.end);
|
|
146342
146344
|
}
|
|
146343
146345
|
if (positionShouldSnapToNode(sourceFile, pos, node)) {
|
|
146346
|
+
if (ts.isFunctionBody(node)
|
|
146347
|
+
&& ts.isFunctionLikeDeclaration(parentNode) && !ts.positionsAreOnSameLine(node.getStart(sourceFile), node.getEnd(), sourceFile)) {
|
|
146348
|
+
pushSelectionRange(node.getStart(sourceFile), node.getEnd());
|
|
146349
|
+
}
|
|
146344
146350
|
// 1. Blocks are effectively redundant with SyntaxLists.
|
|
146345
146351
|
// 2. TemplateSpans, along with the SyntaxLists containing them, are a somewhat unintuitive grouping
|
|
146346
146352
|
// of things that should be considered independently.
|
|
@@ -157953,7 +157959,7 @@ var ts;
|
|
|
157953
157959
|
return { kind: InfoKind.TypeLikeDeclaration, token: token, call: call, modifierFlags: modifierFlags, parentDeclaration: declaration, declSourceFile: declSourceFile, isJSFile: isJSFile };
|
|
157954
157960
|
}
|
|
157955
157961
|
var enumDeclaration = ts.find(symbol.declarations, ts.isEnumDeclaration);
|
|
157956
|
-
if (enumDeclaration && !ts.isPrivateIdentifier(token) && !isSourceFileFromLibrary(program, enumDeclaration.getSourceFile())) {
|
|
157962
|
+
if (enumDeclaration && !(leftExpressionType.flags & 1056 /* TypeFlags.EnumLike */) && !ts.isPrivateIdentifier(token) && !isSourceFileFromLibrary(program, enumDeclaration.getSourceFile())) {
|
|
157957
157963
|
return { kind: InfoKind.Enum, token: token, parentDeclaration: enumDeclaration };
|
|
157958
157964
|
}
|
|
157959
157965
|
return undefined;
|