typescript 4.8.0-dev.20220731 → 4.8.0-dev.20220803
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 +1 -0
- package/lib/ja/diagnosticMessages.generated.json +1 -0
- package/lib/lib.es2015.promise.d.ts +9 -4
- package/lib/lib.es5.d.ts +2 -2
- package/lib/pl/diagnosticMessages.generated.json +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +1 -0
- package/lib/tr/diagnosticMessages.generated.json +1 -0
- package/lib/tsc.js +256 -139
- package/lib/tsserver.js +331 -201
- package/lib/tsserverlibrary.d.ts +16 -10
- package/lib/tsserverlibrary.js +331 -201
- package/lib/typescript.d.ts +16 -10
- package/lib/typescript.js +326 -196
- package/lib/typescriptServices.d.ts +16 -10
- package/lib/typescriptServices.js +326 -196
- package/lib/typingsInstaller.js +285 -163
- package/package.json +1 -1
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Typ this je k dispozici jenom v nestatických členech třídy nebo rozhraní.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Soubor tsconfig.json je už v {0} definovaný.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Člen řazené kolekce členů nemůže být volitelný a zbytek.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Typ řazené kolekce členů není možné indexovat zápornou hodnotou.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Výraz potvrzení typu se na levé straně výrazu umocnění nepovoluje. Zvažte možnost uzavření výrazu do závorek.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Vlastnost literálu typu nemůže mít inicializátor.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Import, při kterém se importují jen typy, může určovat výchozí import nebo pojmenované vazby, ale ne obojí.",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' 型はクラスまたはインターフェイスの静的でないメンバーでのみ使用できます。",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' ファイルは既に '{0}' で定義されています。",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "タプル メンバーを optional と rest の両方に指定することはできません。",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "タプル型に負の値のインデックスを指定することはできません。",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "累乗式の左辺で型アサーション式を使用することはできません。式を括弧で囲むことを検討してください。",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "型リテラル プロパティに初期化子を使用することはできません。",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "型のみのインポートでは既定のインポートまたは名前付きバインドを指定できますが、両方を指定することはできません。",
|
|
@@ -41,7 +41,7 @@ interface PromiseConstructor {
|
|
|
41
41
|
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
|
|
42
42
|
|
|
43
43
|
// see: lib.es2015.iterable.d.ts
|
|
44
|
-
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
|
|
44
|
+
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
|
|
@@ -52,7 +52,7 @@ interface PromiseConstructor {
|
|
|
52
52
|
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
|
|
53
53
|
|
|
54
54
|
// see: lib.es2015.iterable.d.ts
|
|
55
|
-
// race<T>(values: Iterable<T
|
|
55
|
+
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* Creates a new rejected promise for the provided reason.
|
|
@@ -66,13 +66,18 @@ interface PromiseConstructor {
|
|
|
66
66
|
* @returns A resolved promise.
|
|
67
67
|
*/
|
|
68
68
|
resolve(): Promise<void>;
|
|
69
|
-
|
|
70
69
|
/**
|
|
71
70
|
* Creates a new resolved promise for the provided value.
|
|
72
71
|
* @param value A promise.
|
|
73
72
|
* @returns A promise whose internal state matches the provided promise.
|
|
74
73
|
*/
|
|
75
|
-
resolve<T>(value: T
|
|
74
|
+
resolve<T>(value: T): Promise<Awaited<T>>;
|
|
75
|
+
/**
|
|
76
|
+
* Creates a new resolved promise for the provided value.
|
|
77
|
+
* @param value A promise.
|
|
78
|
+
* @returns A promise whose internal state matches the provided promise.
|
|
79
|
+
*/
|
|
80
|
+
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
declare var Promise: PromiseConstructor;
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -1532,8 +1532,8 @@ interface Promise<T> {
|
|
|
1532
1532
|
*/
|
|
1533
1533
|
type Awaited<T> =
|
|
1534
1534
|
T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode
|
|
1535
|
-
T extends object & { then(onfulfilled: infer F): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
|
|
1536
|
-
F extends ((value: infer V, ...args:
|
|
1535
|
+
T extends object & { then(onfulfilled: infer F, ...args: infer _): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
|
|
1536
|
+
F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to `then` is callable, extracts the first argument
|
|
1537
1537
|
Awaited<V> : // recursively unwrap the value
|
|
1538
1538
|
never : // the argument to `then` was not callable
|
|
1539
1539
|
T; // non-object or non-thenable
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Typ „this” jest dostępny tylko w niestatycznej składowej klasy lub interfejsu.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Plik „tsconfig.json” jest już zdefiniowany w: „{0}”.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Składowa krotki nie może być jednocześnie opcjonalna i typu rest.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Nie można indeksować typu krotki z wartością ujemną.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Wyrażenie asercji typu jest niedozwolone po lewej stronie wyrażenia potęgowania. Zastanów się nad zamknięciem wyrażenia w nawiasach.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Właściwość literału typu nie może mieć inicjatora.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Import dotyczący tylko typu może określać import domyślny lub powiązania nazwane, ale nie jedno i drugie jednocześnie.",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "Um tipo 'this' está disponível somente em um membro não estático de uma classe ou interface.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "Um arquivo 'tsconfig.json' já está definido em: '{0}'.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Um membro de tupla não pode ser opcional e rest.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Um tipo de tupla não pode ser indexado com um valor negativo.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Uma expressão de asserção de tipo não é permitida no lado esquerdo de uma expressão de exponenciação. Considere delimitar a expressão em parênteses.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Uma propriedade literal de tipo não pode ter um inicializador.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Uma importação somente de tipo pode especificar uma importação padrão ou associações nomeadas, mas não ambos.",
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526": "'this' türü, yalnızca bir sınıfın veya arabirimin statik olmayan bir üyesinde kullanılabilir.",
|
|
95
95
|
"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054": "'tsconfig.json' dosyası şu konumda zaten tanımlanmış: '{0}'.",
|
|
96
96
|
"A_tuple_member_cannot_be_both_optional_and_rest_5085": "Demet üyesi hem isteğe bağlı hem de diğerleri olamaz.",
|
|
97
|
+
"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514": "Bir demet türünün negatif bir değerle dizini oluşturulamaz.",
|
|
97
98
|
"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007": "Üs ifadesinin sol tarafında tür onaylama ifadesine izin verilmez. İfadeyi parantez içine yazmayı düşünün.",
|
|
98
99
|
"A_type_literal_property_cannot_have_an_initializer_1247": "Tür sabit değeri özelliği bir başlatıcıya sahip olamaz.",
|
|
99
100
|
"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363": "Yalnızca tür içeri aktarma işlemleri varsayılan bir içeri aktarmayı veya adlandırılan bağlamaları belirtebilir ancak ikisini birden belirtemez.",
|