I currently have this type
export type Styles = Record<string, Style>
I use it like this
// Button.styles.ts
const styles: Styles = {
primary: ({ colors }) => ({
backgroundColor: colors.primary,
}),
secondary: ({ colors }) => ({
backgroundColor: colors.secondary,
}),
}
But when I import it in another file I don't get autocomplete
import styles from './Button.styles.ts'
// styles.
// I get nothing if I start typing this, but I want to see a list of "primary, secondary"
basically, I want to infer the keys of this so I get autocomplete when the object is used