Methods
(static) createCollectionTypes(prefix, types) → {Object}
Сreate types object for redux collections
Use createTypes
Parameters:
Name | Type | Description |
---|---|---|
prefix |
String | prefix |
types |
Array | array of types |
Returns:
hash with types
- Type
- Object
(static) createTypes(prefix, types) → {Object}
Create types object for redux with prefix
createTypes('@@user/', ['SET', 'RESET']) => { SET: '@@user/SET', RESET: '@@user/RESET' };
Parameters:
Name | Type | Description |
---|---|---|
prefix |
String | prefix |
types |
Array | array of types |
Returns:
hash with types
- Type
- Object