Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 548 Bytes

File metadata and controls

18 lines (14 loc) · 548 Bytes

StylePropertyArrayValues<Keys>

type StylePropertyArrayValues<Keys> = {
  [K in keyof Keys]: Keys[K] extends StyleProperty
    ? StylePropertyValues[Keys[K]]
    : unknown;
};

Helper type to convert an array of property keys to an array of their value types. Unlike TupleToStyleValues, this returns an array type instead of a tuple.

Type Parameters

Type Parameter
Keys extends StyleProperty[]