/** * Function type assignable from `(a: X) => R` implementations used in dynamic style maps. * Uses TS bivariance trick so concrete handlers with narrower parameters still type-check. */ export type VariadicStyleFn = { bivarianceHack(...args: Array): TResult; }['bivarianceHack']; export type StyleMap = Record>;