yandex / reshadow

Markup and styles that feel right
https://reshadow.dev
Other
363 stars 15 forks source link

styled function signature for typescript-styled-plugin compatibility #95

Open karapetyansa opened 4 years ago

karapetyansa commented 4 years ago

In reshadow import styled from 'reshadow' styled is a template literal , but typescript-styled-plugin this is not true. In typescript-styled-plugin styled.a, styled.div etc is template literal.

To solve this problem, you can add to default export any property same as current styled. In this case, it will be possible to use as follows image Works hightlight, prettier formatting, linting