Skip to content

Commit a067344

Browse files
committed
FR translations: translate file
1 parent 40db6d1 commit a067344

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

docs/playground/fr/3-7/Fixits/Infer From Usage Changes.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,35 @@
11
//// { compiler: { noImplicitAny: false }, order: 2 }
22

3-
// With 3.7 TypeScript's existing 'infer from usage'
4-
// code fix became smarter. It will now use a list of
5-
// known important types (string, number, array, Promise)
6-
// and infer whether the usage of a type matches the API
7-
// of these objects.
8-
9-
// For the next few examples, select the parameters of
10-
// the functions, click the light bulb and choose
3+
// Avec TypeScript 3.7 la correction automatique 'infer from usage'
4+
// s'améliore. Elle utilisera désormais une liste de types importants
5+
// (string, number, array, Promise)
6+
// et déduira si l'usage du type correspond a l'API de ces objets
7+
8+
// Au sein des examples suivants, sélectionnez les paramètres des fonctions,
9+
// cliquez sur l'icône en forme d'ampoule et choisissez
1110
// "Infer Parameter types..."
1211

13-
// Infer a number array:
12+
// Déduire une liste de nombres:
1413

1514
function pushNumber(arr) {
1615
arr.push(12);
1716
}
1817

19-
// Infer a promise:
18+
// Déduire une promesse:
2019

2120
function awaitPromise(promise) {
2221
promise.then((value) => console.log(value));
2322
}
2423

25-
// Infer the function, and its return type:
24+
// Déduire le type d'une fonction et son type de retour
2625

2726
function inferAny(app) {
2827
const result = app.use("hi");
2928
return result;
3029
}
3130

32-
// Infer a string array because a string
33-
// was added to it:
31+
// Déduire une liste de chaines de caractères, car une chaîne de caractères a été
32+
// ajoutée a cette liste:
3433

3534
function insertString(names) {
3635
names[1] = "hello";

0 commit comments

Comments
 (0)