-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
TS: Support generics for layout breakpoints #99
Comments
Hi @kettanaito,
What kind of betterment we are looking for type checking/suggestions if I consider At the moment, Please help me to understand the task. |
Sure. Basically, you can propagate the breakpoints (strings) to such props as the Only component has. So when you type
Those values depend on the breakpoints you have specified in the This is possible to achieve by using generics (I had a PoC branch somewhere on local). However, I am not that strong with TypeScript, and would use some help. If it would be beneficial, I can push the PoC branch and you can follow from there. |
This is something new for me, reading suggestions from configuration looks really good. Could you please push your POC branch I’d love to take a look. |
What:
Need to support generics to specify the relevant breakpoint names of the layout.
Why:
To have better type checking and suggestions when dealing with breakpoint-based values (
<Only/>
component,Layout.configure
).How:
Draft
The text was updated successfully, but these errors were encountered: