VoliJS / NestedReact

BackboneJS compatibility layer for React-MVx MVVM framework.
https://volicon.github.io/React-MVx
79 stars 5 forks source link

@define: NestedTypes style type specs for props #2

Closed gaperton closed 8 years ago

gaperton commented 8 years ago

Special case for @define

    props: {
        name     : Task.Collection.has.changeEvents( true ), // = undefined, track changes
        selected : Function // = undefined
        className : 'something' // string, default value
    }

Simplified type specs. Options supported:

generate default props and propTypes automatically.

gaperton commented 8 years ago

implemented in develop. No ES6 decorator support yet