-
-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor Layout #915
Refactor Layout #915
Conversation
utils/media.ts
Outdated
import { css } from 'styled-components'; | ||
import { RuleSet } from 'styled-components/dist/types'; | ||
|
||
export const mobile = (inner: ReturnType<typeof css>): RuleSet<object> => css` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to remove RuleSet<object>
for these and use the same ReturnType<typeof css>
annotation. Perhaps store it to a local type so you can reuse it?
type CSSUtilType = ReturnType<typeof css>
Thanks for helping with this work! Should be good to merge after that last small refactoring. |
fixed & pushed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
you're very welcome! ) |
Fix Layout component (JS ->TS convertion), 'media' and 'rem' utils; add typings
fixes #902