I have a UserRoles type in typscript
type = 'student' | 'editor' | 'moderator' | 'admin'
or
type UserRoles = 'student' | 'editor' | 'moderator' | 'admin'
how can I create an array based on these types? something like
const roles = Array.from(UserRoles)
Thanks in advance :)