Open sotnikov-link opened 4 years ago
If display
declare as const display = () => "my string"
then all will be work. I think problem to function type "display".
If display declare as const display = (arg: any) => arg
then it does not work. It equals type of function "display"
Describe the bug Types of React and styled-system work wrong
To Reproduce See example.tsx on https://codesandbox.io/s/types-styled-system-05cn9
Temporary solution