Skip to content

Instantly share code, notes, and snippets.

@przemyslawjanpietrzak
Created October 4, 2021 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przemyslawjanpietrzak/d19a74976df04216164faa517eff059c to your computer and use it in GitHub Desktop.
Save przemyslawjanpietrzak/d19a74976df04216164faa517eff059c to your computer and use it in GitHub Desktop.
const obj = { buttonSize: BUTTON_SIZES_CONST_ENUM } // ERROR: 'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query.
Object.values(BUTTON_SIZES_CONST_ENUM); // ERROR 'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment