You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great if in the future, Mori provided type definitions (for Typescript, Flow), which would allow type-checking across any interface (React, etc).
Using Flow as an example, in React's case, you could then include the required Mori types in a type alias (along with other native JS data types), which would allow you to validate all props in an elegant interface. E.g:
I was looking for a way to validate mori types with React, but I couldn't find a library. So I threw together a package to deal with mori propTypes:
https://github.com/farism/react-mori-proptypes
The text was updated successfully, but these errors were encountered: