18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
import { UPDATE_FLAGS } from './actionTypes';
|
|
|
|
/**
|
|
* Updates the current features flags with the given ones. They will be merged.
|
|
*
|
|
* @param {Object} flags - The new flags object.
|
|
* @returns {{
|
|
* type: UPDATE_FLAGS,
|
|
* flags: Object
|
|
* }}
|
|
*/
|
|
export function updateFlags(flags: Object) {
|
|
return {
|
|
type: UPDATE_FLAGS,
|
|
flags
|
|
};
|
|
}
|