Closed franky47 closed 3 years ago
Looks good to me.
The downside about this approach is we lost the nice autocompletion with the breaking points.
Doing that breakingPoint
will expect to be string
instead mobile | tablet | desktop | string
@budt0m that's weird, for VSCODE it doesn't pickup :/
And BTW, if you check on TypeScript playground, it also doesn't autocomplete:
@raulfdm Yep, you're right. I guess WebStorm does some extra magic behind the scenes. That being said, I still think the typings should be updated, as they're currently incorrect
Hello!
Would it be possible to do a new release accepting custom sizes? Or already released and I didn't see...?
As discussed in #3 by @budt0m : https://github.com/morajabi/styled-media-query/issues/3#issuecomment-564049065