There was an error while loading. Please reload this page.
1 parent 2c52f29 commit 0832b29Copy full SHA for 0832b29
docs/types/moving-types.md
@@ -88,7 +88,6 @@ type Colors = keyof typeof colors;
88
let color: Colors; // same as let color: "red" | "blue"
89
color = 'red'; // okay
90
color = 'blue'; // okay
91
-color = 'reddish; // Error: Type '"reddish"' is not assignable to type '"red" | "blue"'
92
color = 'anythingElse'; // Error: Type '"anythingElse"' is not assignable to type '"red" | "blue"'
93
```
94
0 commit comments