-
Notifications
You must be signed in to change notification settings - Fork 259
Conversation
This looks really great, thanks for tackling this. I'm not super familiar, so can you help me understand why |
@marpaia my guess is that they want you to be more specific to ensure the object props are what the app is expecting. As a guy who loves types I figure you're into that 😄 . I think this is also one step closer to using TypeScript as we're defining interfaces for many props. We have to use |
OH, I get it, this is really neat and way more typesafe! That's so cool :) |
I see your logic with not setting interfaces for the style prop as well, given that they can be so different and change so often. This is especially true given that @kyleknighted is probably going to be refactoring styles to use SCSS anyway. I'm good with merging this, thanks for doing this! |
Sounds good thanks for the review @marpaia. I haven't seen people use PropType interfaces this way before but I think it could be a good convention to use internally. Maybe one day we'll even build a component using Typescript. And you're right, hopefully all those style props go away soon in which case we can define interfaces for all object props. |
No description provided.