Skip to content

Commit 666ff2d

Browse files
authored
Slightly simplify a README example
1 parent 21284d3 commit 666ff2d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ Also available is `Enum.isType()`, which checks if a value is of a given enum ty
109109
as a type guard.
110110

111111
``` javascript
112-
const Color = Enum({
113-
BLACK: "black",
114-
WHITE: "white",
115-
});
112+
const Color = Enum("RED", "GREEN", "BLUE", "PUCE");
116113
type Color = Enum<typeof Color>;
117114

118115
let selectedColor: Color;

0 commit comments

Comments
 (0)