typescript 4.8.0-dev.20220617 → 4.8.0-dev.20220618
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/cs/diagnosticMessages.generated.json +5 -1
- package/lib/de/diagnosticMessages.generated.json +2 -0
- package/lib/es/diagnosticMessages.generated.json +5 -1
- package/lib/fr/diagnosticMessages.generated.json +5 -1
- package/lib/it/diagnosticMessages.generated.json +2 -0
- package/lib/ja/diagnosticMessages.generated.json +2 -0
- package/lib/ko/diagnosticMessages.generated.json +5 -1
- package/lib/lib.dom.d.ts +128 -183
- package/lib/lib.dom.iterable.d.ts +1 -11
- package/lib/lib.webworker.d.ts +54 -27
- package/lib/lib.webworker.iterable.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +5 -1
- package/lib/protocol.d.ts +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +5 -1
- package/lib/ru/diagnosticMessages.generated.json +5 -1
- package/lib/tr/diagnosticMessages.generated.json +2 -0
- package/lib/tsc.js +69 -35
- package/lib/tsserver.js +115 -51
- package/lib/tsserverlibrary.d.ts +2 -0
- package/lib/tsserverlibrary.js +115 -51
- package/lib/typescript.d.ts +1 -0
- package/lib/typescript.js +115 -51
- package/lib/typescriptServices.d.ts +1 -0
- package/lib/typescriptServices.js +115 -51
- package/lib/typingsInstaller.js +90 -35
- package/lib/zh-cn/diagnosticMessages.generated.json +5 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +5 -1
- package/package.json +3 -2
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -271,6 +271,10 @@ interface IDBObjectStoreParameters {
|
|
|
271
271
|
keyPath?: string | string[] | null;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
interface IDBTransactionOptions {
|
|
275
|
+
durability?: IDBTransactionDurability;
|
|
276
|
+
}
|
|
277
|
+
|
|
274
278
|
interface IDBVersionChangeEventInit extends EventInit {
|
|
275
279
|
newVersion?: number | null;
|
|
276
280
|
oldVersion?: number;
|
|
@@ -496,12 +500,12 @@ interface RTCEncodedVideoFrameMetadata {
|
|
|
496
500
|
width?: number;
|
|
497
501
|
}
|
|
498
502
|
|
|
499
|
-
interface
|
|
503
|
+
interface ReadableStreamReadDoneResult {
|
|
500
504
|
done: true;
|
|
501
505
|
value?: undefined;
|
|
502
506
|
}
|
|
503
507
|
|
|
504
|
-
interface
|
|
508
|
+
interface ReadableStreamReadValueResult<T> {
|
|
505
509
|
done: false;
|
|
506
510
|
value: T;
|
|
507
511
|
}
|
|
@@ -1004,6 +1008,7 @@ declare var CustomEvent: {
|
|
|
1004
1008
|
|
|
1005
1009
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
1006
1010
|
interface DOMException extends Error {
|
|
1011
|
+
/** @deprecated */
|
|
1007
1012
|
readonly code: number;
|
|
1008
1013
|
readonly message: string;
|
|
1009
1014
|
readonly name: string;
|
|
@@ -1466,7 +1471,7 @@ declare var EventTarget: {
|
|
|
1466
1471
|
|
|
1467
1472
|
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
|
|
1468
1473
|
interface ExtendableEvent extends Event {
|
|
1469
|
-
waitUntil(f: any): void;
|
|
1474
|
+
waitUntil(f: Promise<any>): void;
|
|
1470
1475
|
}
|
|
1471
1476
|
|
|
1472
1477
|
declare var ExtendableEvent: {
|
|
@@ -1801,7 +1806,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1801
1806
|
*/
|
|
1802
1807
|
deleteObjectStore(name: string): void;
|
|
1803
1808
|
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
1804
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1809
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
1805
1810
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1806
1811
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1807
1812
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -2287,7 +2292,6 @@ interface NavigatorID {
|
|
|
2287
2292
|
readonly appName: string;
|
|
2288
2293
|
/** @deprecated */
|
|
2289
2294
|
readonly appVersion: string;
|
|
2290
|
-
/** @deprecated */
|
|
2291
2295
|
readonly platform: string;
|
|
2292
2296
|
/** @deprecated */
|
|
2293
2297
|
readonly product: string;
|
|
@@ -2304,10 +2308,6 @@ interface NavigatorLocks {
|
|
|
2304
2308
|
readonly locks: LockManager;
|
|
2305
2309
|
}
|
|
2306
2310
|
|
|
2307
|
-
interface NavigatorNetworkInformation {
|
|
2308
|
-
readonly connection: NetworkInformation;
|
|
2309
|
-
}
|
|
2310
|
-
|
|
2311
2311
|
interface NavigatorOnLine {
|
|
2312
2312
|
readonly onLine: boolean;
|
|
2313
2313
|
}
|
|
@@ -2317,15 +2317,6 @@ interface NavigatorStorage {
|
|
|
2317
2317
|
readonly storage: StorageManager;
|
|
2318
2318
|
}
|
|
2319
2319
|
|
|
2320
|
-
interface NetworkInformation extends EventTarget {
|
|
2321
|
-
readonly type: ConnectionType;
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
declare var NetworkInformation: {
|
|
2325
|
-
prototype: NetworkInformation;
|
|
2326
|
-
new(): NetworkInformation;
|
|
2327
|
-
};
|
|
2328
|
-
|
|
2329
2320
|
interface NotificationEventMap {
|
|
2330
2321
|
"click": Event;
|
|
2331
2322
|
"close": Event;
|
|
@@ -2658,6 +2649,7 @@ declare var PushMessageData: {
|
|
|
2658
2649
|
*/
|
|
2659
2650
|
interface PushSubscription {
|
|
2660
2651
|
readonly endpoint: string;
|
|
2652
|
+
readonly expirationTime: EpochTimeStamp | null;
|
|
2661
2653
|
readonly options: PushSubscriptionOptions;
|
|
2662
2654
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
2663
2655
|
toJSON(): PushSubscriptionJSON;
|
|
@@ -2702,6 +2694,19 @@ declare var RTCEncodedVideoFrame: {
|
|
|
2702
2694
|
new(): RTCEncodedVideoFrame;
|
|
2703
2695
|
};
|
|
2704
2696
|
|
|
2697
|
+
interface ReadableByteStreamController {
|
|
2698
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
2699
|
+
readonly desiredSize: number | null;
|
|
2700
|
+
close(): void;
|
|
2701
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
2702
|
+
error(e?: any): void;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
declare var ReadableByteStreamController: {
|
|
2706
|
+
prototype: ReadableByteStreamController;
|
|
2707
|
+
new(): ReadableByteStreamController;
|
|
2708
|
+
};
|
|
2709
|
+
|
|
2705
2710
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
2706
2711
|
interface ReadableStream<R = any> {
|
|
2707
2712
|
readonly locked: boolean;
|
|
@@ -2717,6 +2722,27 @@ declare var ReadableStream: {
|
|
|
2717
2722
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2718
2723
|
};
|
|
2719
2724
|
|
|
2725
|
+
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
2726
|
+
read(view: ArrayBufferView): Promise<ReadableStreamReadResult<ArrayBufferView>>;
|
|
2727
|
+
releaseLock(): void;
|
|
2728
|
+
}
|
|
2729
|
+
|
|
2730
|
+
declare var ReadableStreamBYOBReader: {
|
|
2731
|
+
prototype: ReadableStreamBYOBReader;
|
|
2732
|
+
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
2733
|
+
};
|
|
2734
|
+
|
|
2735
|
+
interface ReadableStreamBYOBRequest {
|
|
2736
|
+
readonly view: ArrayBufferView | null;
|
|
2737
|
+
respond(bytesWritten: number): void;
|
|
2738
|
+
respondWithNewView(view: ArrayBufferView): void;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
declare var ReadableStreamBYOBRequest: {
|
|
2742
|
+
prototype: ReadableStreamBYOBRequest;
|
|
2743
|
+
new(): ReadableStreamBYOBRequest;
|
|
2744
|
+
};
|
|
2745
|
+
|
|
2720
2746
|
interface ReadableStreamDefaultController<R = any> {
|
|
2721
2747
|
readonly desiredSize: number | null;
|
|
2722
2748
|
close(): void;
|
|
@@ -2730,7 +2756,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2730
2756
|
};
|
|
2731
2757
|
|
|
2732
2758
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2733
|
-
read(): Promise<
|
|
2759
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2734
2760
|
releaseLock(): void;
|
|
2735
2761
|
}
|
|
2736
2762
|
|
|
@@ -2899,6 +2925,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
2899
2925
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2900
2926
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
2901
2927
|
readonly registration: ServiceWorkerRegistration;
|
|
2928
|
+
readonly serviceWorker: ServiceWorker;
|
|
2902
2929
|
skipWaiting(): Promise<void>;
|
|
2903
2930
|
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2904
2931
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5278,8 +5305,8 @@ interface WindowOrWorkerGlobalScope {
|
|
|
5278
5305
|
readonly performance: Performance;
|
|
5279
5306
|
atob(data: string): string;
|
|
5280
5307
|
btoa(data: string): string;
|
|
5281
|
-
clearInterval(id
|
|
5282
|
-
clearTimeout(id
|
|
5308
|
+
clearInterval(id: number | undefined): void;
|
|
5309
|
+
clearTimeout(id: number | undefined): void;
|
|
5283
5310
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5284
5311
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5285
5312
|
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5371,7 +5398,7 @@ declare var WorkerLocation: {
|
|
|
5371
5398
|
};
|
|
5372
5399
|
|
|
5373
5400
|
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
|
5374
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks,
|
|
5401
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5375
5402
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5376
5403
|
}
|
|
5377
5404
|
|
|
@@ -5395,6 +5422,7 @@ declare var WritableStream: {
|
|
|
5395
5422
|
|
|
5396
5423
|
/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
5397
5424
|
interface WritableStreamDefaultController {
|
|
5425
|
+
readonly signal: AbortSignal;
|
|
5398
5426
|
error(e?: any): void;
|
|
5399
5427
|
}
|
|
5400
5428
|
|
|
@@ -5818,8 +5846,8 @@ declare var origin: string;
|
|
|
5818
5846
|
declare var performance: Performance;
|
|
5819
5847
|
declare function atob(data: string): string;
|
|
5820
5848
|
declare function btoa(data: string): string;
|
|
5821
|
-
declare function clearInterval(id
|
|
5822
|
-
declare function clearTimeout(id
|
|
5849
|
+
declare function clearInterval(id: number | undefined): void;
|
|
5850
|
+
declare function clearTimeout(id: number | undefined): void;
|
|
5823
5851
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5824
5852
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5825
5853
|
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
@@ -5859,7 +5887,7 @@ type GLsizeiptr = number;
|
|
|
5859
5887
|
type GLuint = number;
|
|
5860
5888
|
type GLuint64 = number;
|
|
5861
5889
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
5862
|
-
type HeadersInit = string
|
|
5890
|
+
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
5863
5891
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
5864
5892
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
5865
5893
|
type Int32List = Int32Array | GLint[];
|
|
@@ -5869,7 +5897,7 @@ type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
|
5869
5897
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5870
5898
|
type PushMessageDataInit = BufferSource | string;
|
|
5871
5899
|
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
|
|
5872
|
-
type
|
|
5900
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult;
|
|
5873
5901
|
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
|
|
5874
5902
|
type RequestInfo = Request | string;
|
|
5875
5903
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
@@ -5882,7 +5910,6 @@ type BinaryType = "arraybuffer" | "blob";
|
|
|
5882
5910
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5883
5911
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5884
5912
|
type ColorSpaceConversion = "default" | "none";
|
|
5885
|
-
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
|
|
5886
5913
|
type DocumentVisibilityState = "hidden" | "visible";
|
|
5887
5914
|
type EndingType = "native" | "transparent";
|
|
5888
5915
|
type FileSystemHandleKind = "directory" | "file";
|
|
@@ -59,7 +59,7 @@ interface Headers {
|
|
|
59
59
|
|
|
60
60
|
interface IDBDatabase {
|
|
61
61
|
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
62
|
-
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
|
|
62
|
+
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
interface IDBObjectStore {
|
|
@@ -132,6 +132,8 @@
|
|
|
132
132
|
"Add_definite_assignment_assertion_to_property_0_95020": "Dodaj asercję określonego przypisania do właściwości „{0}”",
|
|
133
133
|
"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Dodaj asercję określonego przypisania do wszystkich niezainicjowanych właściwości",
|
|
134
134
|
"Add_export_to_make_this_file_into_a_module_95097": "Dodaj element „export {}”, aby przekształcić ten plik w moduł",
|
|
135
|
+
"Add_extends_constraint_2211": "Add `extends` constraint.",
|
|
136
|
+
"Add_extends_constraint_to_all_type_parameters_2212": "Add `extends` constraint to all type parameters",
|
|
135
137
|
"Add_import_from_0_90057": "Dodaj import z „{0}”",
|
|
136
138
|
"Add_index_signature_for_property_0_90017": "Dodaj sygnaturę indeksu dla właściwości „{0}”",
|
|
137
139
|
"Add_initializer_to_property_0_95019": "Dodaj inicjator do właściwości „{0}”",
|
|
@@ -1493,7 +1495,7 @@
|
|
|
1493
1495
|
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Ta składnia wymaga zaimportowanego pomocnika, ale nie można znaleźć modułu „{0}”.",
|
|
1494
1496
|
"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Ta składnia wymaga zaimportowanego pomocnika o nazwie „{1}”, który nie istnieje w elemencie „{0}”. Rozważ uaktualnienie wersji „{0}”.",
|
|
1495
1497
|
"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Ta składnia wymaga zaimportowanego pomocnika o nazwie „{1}” z parametrami {2}, który nie jest zgodny z tym w elemencie „{0}”. Rozważ uaktualnienie wersji elementu „{0}”.",
|
|
1496
|
-
"
|
|
1498
|
+
"This_type_parameter_might_need_an_extends_0_constraint_2208": "This type parameter might need an `extends {0}` constraint.",
|
|
1497
1499
|
"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "To użycie elementu „import” jest nieprawidłowe. Wywołania „import()” mogą być zapisywane, ale muszą mieć nawiasy i nie mogą mieć argumentów typu.",
|
|
1498
1500
|
"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Wyrażenia „await” najwyższego poziomu są dozwolone tylko wtedy, gdy opcja „module” jest ustawiona na wartość „es2022”, „esnext”, „system”, „node16” lub „nodenext”, a opcja „target” jest ustawiona na wartość „es2017” lub wyższą.",
|
|
1499
1501
|
"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Deklaracje najwyższego poziomu w plikach .d.ts muszą rozpoczynać się od modyfikatora „declare” lub „export”.",
|
|
@@ -1651,6 +1653,7 @@
|
|
|
1651
1653
|
"Watch_and_Build_Modes_6250": "Tryb wyrażeń kontrolnych i kompilowania",
|
|
1652
1654
|
"Watch_input_files_6005": "Obserwuj pliki wejściowe.",
|
|
1653
1655
|
"Watch_option_0_requires_a_value_of_type_1_5080": "Opcja obserwowania „{0}” wymaga wartości typu {1}.",
|
|
1656
|
+
"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Możemy napisać typ tylko dla elementu „{0}”, dodając typ dla całego parametru w tym miejscu.",
|
|
1654
1657
|
"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Podczas przypisywania funkcji upewnij się, że parametry i zwracane wartości są zgodne pod względem podtypów.",
|
|
1655
1658
|
"When_type_checking_take_into_account_null_and_undefined_6699": "Podczas sprawdzania typów uwzględniaj wartości „null” i „undefined”.",
|
|
1656
1659
|
"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Określa, czy zachować nieaktualne dane wyjściowe konsoli w trybie śledzenia zamiast wyczyścić ekran.",
|
|
@@ -1690,6 +1693,7 @@
|
|
|
1690
1693
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Typu indeksu „{0}” „{1}” nie można przypisać do typu indeksu „{2}” „{3}”.",
|
|
1691
1694
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "Element „{0}” jest elementem podstawowym, ale element „{1}” jest obiektem otoki. Preferuje się użycie elementu „{0}”, jeśli jest to możliwe.",
|
|
1692
1695
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "Element \"{0}\" jest typem i musi być importowany przy użyciu importu tylko typu, gdy są włączone opcje \"preserveValueImports\" i \"isolatedModules\".",
|
|
1696
|
+
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "„{0}” to nieużywana zmiana nazwy elementu „{1}”. Czy zamierzano używać go jako adnotacji typu?",
|
|
1693
1697
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "Element „{0}” można przypisać do ograniczenia typu „{1}”, ale wystąpienie typu „{1}” można utworzyć z innym podtypem ograniczenia „{2}”.",
|
|
1694
1698
|
"_0_is_declared_but_its_value_is_never_read_6133": "Element „{0}” jest zadeklarowany, ale jego wartość nie jest nigdy odczytywana.",
|
|
1695
1699
|
"_0_is_declared_but_never_used_6196": "Element „{0}” jest zadeklarowany, ale nie jest nigdy używany.",
|
package/lib/protocol.d.ts
CHANGED
|
@@ -2703,6 +2703,7 @@ declare namespace ts.server.protocol {
|
|
|
2703
2703
|
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
|
2704
2704
|
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
|
2705
2705
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
|
2706
|
+
readonly autoImportFileExcludePatterns?: string[];
|
|
2706
2707
|
}
|
|
2707
2708
|
interface CompilerOptions {
|
|
2708
2709
|
allowJs?: boolean;
|
|
@@ -132,6 +132,8 @@
|
|
|
132
132
|
"Add_definite_assignment_assertion_to_property_0_95020": "Adicionar a asserção de atribuição definitiva à propriedade '{0}'",
|
|
133
133
|
"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Adicionar declarações de atribuição definidas a todas as propriedades não inicializadas",
|
|
134
134
|
"Add_export_to_make_this_file_into_a_module_95097": "Adicionar 'export {}' para transformar este arquivo em um módulo",
|
|
135
|
+
"Add_extends_constraint_2211": "Adicione a restrição `extends`.",
|
|
136
|
+
"Add_extends_constraint_to_all_type_parameters_2212": "Adicionar a restrição `extends` a todos os parâmetros de tipo",
|
|
135
137
|
"Add_import_from_0_90057": "Adicionar importação de \"{0}\"",
|
|
136
138
|
"Add_index_signature_for_property_0_90017": "Adicionar assinatura de índice para a propriedade '{0}'",
|
|
137
139
|
"Add_initializer_to_property_0_95019": "Adicionar inicializador à propriedade '{0}'",
|
|
@@ -1493,7 +1495,7 @@
|
|
|
1493
1495
|
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Essa sintaxe requer um auxiliar importado, mas o módulo '{0}' não pode ser encontrado.",
|
|
1494
1496
|
"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Esta sintaxe requer um auxiliar importado chamado '{1}' que não existe em '{0}'. Considere atualizar sua versão do '{0}'.",
|
|
1495
1497
|
"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Esta sintaxe exige um auxiliar importado nomeado como '{1}' com parâmetros {2}, o que não é compatível com o que está em '{0}'. Considere atualizar sua versão do '{0}'.",
|
|
1496
|
-
"
|
|
1498
|
+
"This_type_parameter_might_need_an_extends_0_constraint_2208": "Este parâmetro de tipo pode precisar de uma restrição `extends {0}`.",
|
|
1497
1499
|
"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Este uso de 'importar' é inválido. Chamadas 'import()' podem ser escritas, mas devem ter parênteses e não podem ter argumentos de tipo.",
|
|
1498
1500
|
"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "As expressões 'await' de nível superior só são permitidas quando a opção 'module' está definida como 'es2022', 'esnext', 'system', 'node16' ou 'nodenext' e a opção 'target' está definida como ' es2017' ou superior.",
|
|
1499
1501
|
"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "As declarações de nível superior em arquivos .d.ts devem começar com um modificador 'declare' ou 'export'.",
|
|
@@ -1651,6 +1653,7 @@
|
|
|
1651
1653
|
"Watch_and_Build_Modes_6250": "Modos Inspeção e Compilação",
|
|
1652
1654
|
"Watch_input_files_6005": "Observe os arquivos de entrada.",
|
|
1653
1655
|
"Watch_option_0_requires_a_value_of_type_1_5080": "A opção do observador '{0}' requer um valor do tipo {1}.",
|
|
1656
|
+
"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Só podemos gravar um tipo de '{0}' adicionando um tipo para o parâmetro inteiro aqui.",
|
|
1654
1657
|
"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "Ao atribuir funções, certifique-se que os parâmetros e os valores de retorno sejam compatíveis com subtipo.",
|
|
1655
1658
|
"When_type_checking_take_into_account_null_and_undefined_6699": "Quando a fizer a verificação de tipo, considere 'null' e 'undefined'.",
|
|
1656
1659
|
"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Se é necessário manter a saída de console desatualizada no modo de inspeção, em vez de limpar a tela.",
|
|
@@ -1690,6 +1693,7 @@
|
|
|
1690
1693
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' tipo de índice '{1}' não pode ser atribuído a '{2}' tipo de índice '{3}'.",
|
|
1691
1694
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' é um primitivo, mas '{1}' é um objeto de wrapper. Prefira usar '{0}' quando possível.",
|
|
1692
1695
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' é um tipo e deve ser importado usando uma importação somente de tipo quando 'preserveValueImports' e 'isolatedModules' estiverem habilitados.",
|
|
1696
|
+
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}' é uma renomeação não usada de '{1}'. Você pretendia usá-lo como uma anotação de tipo?",
|
|
1693
1697
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}' é atribuível à restrição do tipo '{1}', mas é possível criar uma instância de '{1}' com um subtipo diferente de restrição '{2}'.",
|
|
1694
1698
|
"_0_is_declared_but_its_value_is_never_read_6133": "'{0}' é declarado, mas seu valor nunca é lido.",
|
|
1695
1699
|
"_0_is_declared_but_never_used_6196": "'{0}' está declarado, mas nunca foi usado.",
|
|
@@ -132,6 +132,8 @@
|
|
|
132
132
|
"Add_definite_assignment_assertion_to_property_0_95020": "Добавить утверждение определенного назначения к свойству \"{0}\"",
|
|
133
133
|
"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028": "Добавить утверждения определенного назначения ко всем неинициализированным свойствам",
|
|
134
134
|
"Add_export_to_make_this_file_into_a_module_95097": "Добавить \"export {}\", чтобы превратить этот файл в модуль",
|
|
135
|
+
"Add_extends_constraint_2211": "Добавить ограничение \"extends\".",
|
|
136
|
+
"Add_extends_constraint_to_all_type_parameters_2212": "Добавить ограничение \"extends\" ко всем параметрам типа",
|
|
135
137
|
"Add_import_from_0_90057": "Добавить импортировать из \"{0}\"",
|
|
136
138
|
"Add_index_signature_for_property_0_90017": "Добавьте сигнатуру индекса для свойства \"{0}\"",
|
|
137
139
|
"Add_initializer_to_property_0_95019": "Добавить инициализатор к свойству \"{0}\"",
|
|
@@ -1493,7 +1495,7 @@
|
|
|
1493
1495
|
"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Для этого синтаксиса требуется импортированный вспомогательный объект, но найти модуль \"{0}\" не удается.",
|
|
1494
1496
|
"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343": "Для этого синтаксиса требуется импортированный вспомогательный объект с именем \"{1}\", который не существует в \"{0}\". Рекомендуется обновить версию \"{0}\".",
|
|
1495
1497
|
"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807": "Для этого синтаксиса требуется импортированный вспомогательный объект с именем \"{1}\" и параметрами ({2}), который не совместим с объектом в \"{0}\". Попробуйте обновить версию \"{0}\".",
|
|
1496
|
-
"
|
|
1498
|
+
"This_type_parameter_might_need_an_extends_0_constraint_2208": "Для этого параметра типа может потребоваться ограничение \"extends {0}\".",
|
|
1497
1499
|
"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326": "Недопустимое использование \"import\". Можно записывать вызовы \"import()\", но у них должны быть скобки и не должно быть аргументов типа.",
|
|
1498
1500
|
"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378": "Выражения ожидания верхнего уровня разрешены только в том случае, если для параметра \"module\" установлено значение \"es2022\", \"esnext\", \"system\", \"node16\" или \"nodenext\", а для параметра \"цель\" установлено значение \"es2017\" или выше.",
|
|
1499
1501
|
"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046": "Объявления верхнего уровня в файлах .d.ts должны начинаться с модификатора \"declare\" или \"export\".",
|
|
@@ -1651,6 +1653,7 @@
|
|
|
1651
1653
|
"Watch_and_Build_Modes_6250": "Режимы отслеживания и сборки",
|
|
1652
1654
|
"Watch_input_files_6005": "Просмотр входных файлов.",
|
|
1653
1655
|
"Watch_option_0_requires_a_value_of_type_1_5080": "Параметр \"{0}\" контрольного значения требует значение типа {1}.",
|
|
1656
|
+
"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "Записать тип для \"{0}\" можно, только добавив здесь тип для всего параметра.",
|
|
1654
1657
|
"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "При назначении функций убедитесь, что параметры и возвращаемые значения совместимы с подтипом.",
|
|
1655
1658
|
"When_type_checking_take_into_account_null_and_undefined_6699": "При проверке типа учитывайте параметры \"null\" и \"undefined\".",
|
|
1656
1659
|
"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Сохранять ли устаревшие выходные данные консоли в режиме просмотра вместо очистки экрана.",
|
|
@@ -1690,6 +1693,7 @@
|
|
|
1690
1693
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "Тип индекса \"{0}\" \"{1}\" не может быть назначен типу индекса \"{2}\" \"{3}\".",
|
|
1691
1694
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "\"{0}\" является примитивом, но \"{1}\" — объект оболочки. Предпочтительно использовать \"{0}\" по мере возможности.",
|
|
1692
1695
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "\"{0}\" является типом. Чтобы импортировать его, необходимо использовать импорт, распространяющийся только на тип, если включены параметры \"preserveValueImports\" и \"isolatedModules\".",
|
|
1696
|
+
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "\"{0}\" является неиспользуемым переименованием \"{1}\". Возможно, это должна была быть заметка для типа?",
|
|
1693
1697
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "\"{0}\" может быть назначен ограничению типа \"{1}\", но можно создать экземпляр \"{1}\" с другим подтипом ограничения \"{2}\".",
|
|
1694
1698
|
"_0_is_declared_but_its_value_is_never_read_6133": "Свойство \"{0}\" объявлено, но его значение не было прочитано.",
|
|
1695
1699
|
"_0_is_declared_but_never_used_6196": "\"{0}\" объявлен, но никогда не использовался.",
|
|
@@ -1651,6 +1651,7 @@
|
|
|
1651
1651
|
"Watch_and_Build_Modes_6250": "İzleme ve Derleme Modları",
|
|
1652
1652
|
"Watch_input_files_6005": "Giriş dosyalarını izleyin.",
|
|
1653
1653
|
"Watch_option_0_requires_a_value_of_type_1_5080": "'{0}' izleme seçeneği, {1} türünde bir değer gerektiriyor.",
|
|
1654
|
+
"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843": "'{0}' için bir türü yalnızca tüm parametre için buraya bir tür ekleyerek yazabiliriz.",
|
|
1654
1655
|
"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698": "İşlevler atanırken, parametrelerin ve dönüş değerlerinin alt tür ile uyumlu olduğundan emin olun.",
|
|
1655
1656
|
"When_type_checking_take_into_account_null_and_undefined_6699": "Tür denetimi sırasında 'null' ve 'undefined' öğelerini hesaba kat.",
|
|
1656
1657
|
"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191": "Eski konsol çıktısının ekrandan kaldırılmak yerine izleme modunda tutulup tutulmayacağı.",
|
|
@@ -1690,6 +1691,7 @@
|
|
|
1690
1691
|
"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413": "'{0}' dizin türü '{1}' ' {2}' dizin türüne '{3}' atanamaz.",
|
|
1691
1692
|
"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692": "'{0}' temel elemandır ancak '{1}' sarmalayıcı nesnedir. Mümkün olduğunda '{0}' kullanmayı tercih edin.",
|
|
1692
1693
|
"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444": "'{0}' bir türdür ve 'preserveValueImports' ve 'isolatedModules' seçeneklerinin her ikisi de etkin olduğunda yalnızca türü içeri aktarma kullanılarak içeri aktarılmalıdır.",
|
|
1694
|
+
"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842": "'{0}', '{1}' türünün kullanılmayan bir yeniden adlandırması. Tür ek açıklaması olarak mı kullanmak istediniz?",
|
|
1693
1695
|
"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075": "'{0}', '{1}' türündeki kısıtlamaya atanabilir ancak '{1}' örneği, '{2}' kısıtlamasının farklı bir alt türüyle oluşturulabilir.",
|
|
1694
1696
|
"_0_is_declared_but_its_value_is_never_read_6133": "'{0}' bildirildi ancak değeri hiç okunmadı.",
|
|
1695
1697
|
"_0_is_declared_but_never_used_6196": "'{0}' bildirildi ancak hiç kullanılmadı.",
|