Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

How to add type annotation? #31

Open
linonetwo opened this issue Sep 26, 2017 · 0 comments
Open

How to add type annotation? #31

linonetwo opened this issue Sep 26, 2017 · 0 comments

Comments

@linonetwo
Copy link

Seems losing ways to type.

type DiffColors = 'white' | 'red' | 'green' | 'yellow';
const DiffRow = styled.p`
  background-color: ${styledProps(
    {
      white: 'white',
      red: '#ffedf4',
      green: '#f2ffde',
      yellow: '#feffe0',
    },
    'color',
  )};
`;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant