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/tips/typeInstantiation.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The Type assertion pattern is unsafe in that it trusts you to do the right thing
25
25
classFooNumberextendsFoo<number>{}
26
26
```
27
27
28
-
One word of caution here : if you use decorators on the base class than the inherited class might now have the same behavior as the base class (it is no longer wrapped by the decorator).
28
+
One word of caution here : if you use decorators on the base class then the inherited class might now have the same behavior as the base class (it is no longer wrapped by the decorator).
29
29
30
30
Of course if you are not specializing classes you still have to come up with a coercion / assertion pattern that works and hence we showed the general assertion pattern first, e.g.:
0 commit comments