nested enum typescript code example Example: ts enum definition enum PrintMedia { Newspaper, Newsletter, Magazine, Book }