typescript enum value type define code example Example: declare enum in type script Click to copyenum PrintMedia { Newspaper = 1, Newsletter, Magazine, Book }