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
Exported variable 'StyledSwitch' has or is using name 'SwitchProps' from external module "/Users/claudvanbarret/project/node_modules/rc-switch/lib/index" but cannot be named.ts(4023)
This error can be probably is an issue in TypeScript, but wen can quickly solve this problem by exporting the SwitchProps interface.
I'm styling switch with styled-components in TypeScript like this:
But I'm getting this error.
Exported variable 'StyledSwitch' has or is using name 'SwitchProps' from external module "/Users/claudvanbarret/project/node_modules/rc-switch/lib/index" but cannot be named.ts(4023)
This error can be probably is an issue in TypeScript, but wen can quickly solve this problem by exporting the SwitchProps interface.
I already send a pull request(#56) to fix it.
The text was updated successfully, but these errors were encountered: