You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type 'CSSVarFunction' is not assignable to type 'TextAlign | TextAlign[] | undefined'.
Type '`var(--${string})`' is not assignable to type 'TextAlign | TextAlign[] | undefined'.
Avoiding the error: textAlign: colGroupHeaderVars.textAlign as Property.TextAlign,
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm noticing a type issue when using theme contracts with strictly defined types like
textAlign
. Is there a right way to deal with this?Code:
Error:
Avoiding the error:
textAlign: colGroupHeaderVars.textAlign as Property.TextAlign,
Beta Was this translation helpful? Give feedback.
All reactions