Skip to content

Commit a8a5d4d

Browse files
authored
Fix typo in Enum.ofKeys example
1 parent 6d29cad commit a8a5d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ the keys of an enum rather than the values. For example:
158158
const ErrorColor = Enum({ OK: "green", ERROR: "red" });
159159
type ErrorColor = Enum<typeof ErrorColor>;
160160

161-
const ErrorLevel = Enum.ofKeys(ErrorCodes);
161+
const ErrorLevel = Enum.ofKeys(ErrorColor);
162162

163163
const errorLevel = getErrorLevel();
164164

0 commit comments

Comments
 (0)