I have a very basic folder structure for config files like this:
/config
/button
/colors
/index
Code looks like this:
colors.ts
export interface Colors {
[key: string]: string,
}
export default {
black: '#111',
grey: '#999',
green: '#4c8857',
red: '#bd1414',
white: '#fff',
};
index.ts
import colors from './colors';
export default {
button,
colors,
};
I get the following error:
Could not find a declaration file for module './colors'. '/xxxxx/styles/config/colors.js' implicitly has an 'any' type.
I'm completely new to Typescript and can't find any tutorials or examples online that clearly explain what I've done wrong here.
ìmport {Colors} from './colors';