Skip to content

Commit 0832b29

Browse files
authored
Update moving-types.md
1 parent 2c52f29 commit 0832b29

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/types/moving-types.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ type Colors = keyof typeof colors;
8888
let color: Colors; // same as let color: "red" | "blue"
8989
color = 'red'; // okay
9090
color = 'blue'; // okay
91-
color = 'reddish; // Error: Type '"reddish"' is not assignable to type '"red" | "blue"'
9291
color = 'anythingElse'; // Error: Type '"anythingElse"' is not assignable to type '"red" | "blue"'
9392
```
9493

0 commit comments

Comments
 (0)