Is there a way I can rewrite this code without using the const
keyword?
const theme: ITheme = { color: 'blue' };
export default theme;
I want to avoid disabling type checks, so the following solution is not ideal:
export default {color: Blue} as ITheme
This issue may be related to:
- export { default as x } does not infer type, but with different usage.