You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/fr/handbook-v2/Type Manipulation/Conditional Types.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,8 @@ type Stuff =
38
38
39
39
Quand le type à gauche d'`extends` peut être assigné au type de droite, le résultat sera le type dans la première branche (la branche "vrai"); sinon ce sera le type dans la deuxième branche (la branche "false").
40
40
41
-
From the examples above, conditional types might not immediately seem useful - we can tell ourselves whether or not `Dog extends Animal`and pick `number`or`string`!
42
-
But the power of conditional types comes from using them with generics.
41
+
Ces exemples ne montrent pas forcément l'intérêt des conditions, vu qu'on peut voir si `Dog extends Animal`et décider entre `number`et`string` de nous-même.
42
+
Cet intérêt se manifeste surtout en utilisant les types génériques.
43
43
44
44
For example, let's take the following `createLabel` function:
0 commit comments