import { Variable } from './createVariable' ; type GenericTheme = { [ key ] : string | Variable ; } ; export const createTheme = < Theme extends GenericTheme > ( theme ) : { [ K in keyof Theme ] : Theme [ K ] | string | Variable ; } => theme ;