您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }