Last active
October 26, 2016 07:35
-
-
Save FabreFrederic/5bb509739c2f37c855561ff80d57a10d to your computer and use it in GitHub Desktop.
Example of an enum class in Typescript. The enum returns a string value instead of a numeric value.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum ImprovedDirection { | |
Left = <any>'left', | |
Right = <any>'right' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment