/** * Provides proper typing for vanilla extract to be able to type style objects */ export function mapValues( obj: T, predicate: (value: T[keyof T], key: keyof T) => U, ): Record { const output = {} as Record let prop: keyof T for (prop in obj) { output[prop] = predicate(obj[prop], prop) } return output }