You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 375B

12345678910111213141516171819
  1. // @flow
  2. import { UPDATE_FLAGS } from './actionTypes';
  3. /**
  4. * Updates the current features flags with the given ones. They will be merged.
  5. *
  6. * @param {Object} flags - The new flags object.
  7. * @returns {{
  8. * type: UPDATE_FLAGS,
  9. * flags: Object
  10. * }}
  11. */
  12. export function updateFlags(flags: Object) {
  13. return {
  14. type: UPDATE_FLAGS,
  15. flags
  16. };
  17. }