Skip to content
This repository was archived by the owner on Jun 3, 2022. It is now read-only.

Use named exports in constants #11

Closed
appsforartists opened this issue Oct 24, 2016 · 1 comment
Closed

Use named exports in constants #11

appsforartists opened this issue Oct 24, 2016 · 1 comment

Comments

@appsforartists
Copy link
Member

I'd split your constants into areas of responsibility and use named export to move them between files. For instance, in constants.ts:

export const KeyCode = {
  ESC: 27,
};

Then, you'd use KeyboardEventType.DOWN and KeyCode.ESC.

@chriscox
Copy link
Member

Done in #16.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants