kiwicom/orbit

inline PropObject type

straxico opened this issue · 0 comments

An index signature parameter type cannot be a union type. Consider using a mapped object type instead

type PropObject = { [key: Prop]: Align | Justify };

for fix

type PropObject = { [key in Prop]: AlignInline | JustifyInline; };