Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save janjakubnanista/84eae0aaab339a67f41eb9aa5f404355 to your computer and use it in GitHub Desktop.
Save janjakubnanista/84eae0aaab339a67f41eb9aa5f404355 to your computer and use it in GitHub Desktop.
import { valuesOf } from 'ts-reflection';
// OMG SO MUCH BETTER
const buttonTypes: ButtonType[] = valuesOf<ButtonType>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment