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
However the TS compiler is complaining about a missing source prop when using the component like this <BackgroundImage/>
Is there a way to tell the TS compiler that this component does not need a source prop, in fact MUST NOT allow a source prop?
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
-
My styled Image component gets its source from the theme context like this:
However the TS compiler is complaining about a missing
source
prop when using the component like this<BackgroundImage/>
Is there a way to tell the TS compiler that this component does not need a source prop, in fact MUST NOT allow a source prop?
Beta Was this translation helpful? Give feedback.
All reactions