Closed busypeoples closed 8 years ago
This is a great start!
IMO making this a shared util with unit tests would be necessary to land it. I reckon there's tons of edge cases that need to be taken care which we can't accurately asses are taken care of just from looking at it. Would you mind doing that?
This should give you a high level idea of what's going on. Maybe @steos could optimize the enum and shape generation with a randomizer?
@busypeoples I'm thinking about preventing people to pick nested structures like objects & arrays in the interface. It introduces so much complexity. Defining it in your code as Flow or PropTypes should be ok.
Changing an avatarUrl prop to avatar was the use-case why we need this in the first place and this is already covered …
What do you think?
@nikgraf preventing nested structures makes sense.
I cherry picked one change, but left out the other stuff.
nice, will take a look a bit later today! thx @busypeoples