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

actions.ts 842B

1234567891011121314151617181920212223242526272829303132333435
  1. import { SET_LOGGING_CONFIG, SET_LOG_COLLECTOR } from './actionTypes';
  2. /**
  3. * Stores a {@code Logger.LogCollector} instance which will be uploading logs.
  4. *
  5. * @param {Logger.LogCollector} logCollector - The log collector instance to be
  6. * stored in the Redux state of base/logging feature.
  7. * @returns {{
  8. * type,
  9. * logCollector: Object
  10. * }}
  11. */
  12. export function setLogCollector(logCollector?: Object) {
  13. return {
  14. type: SET_LOG_COLLECTOR,
  15. logCollector
  16. };
  17. }
  18. /**
  19. * Sets the configuration of the feature base/logging.
  20. *
  21. * @param {Object} config - The configuration to set on the features
  22. * base/logging.
  23. * @returns {{
  24. * type: SET_LOGGING_CONFIG,
  25. * config: Object
  26. * }}
  27. */
  28. export function setLoggingConfig(config: Object) {
  29. return {
  30. type: SET_LOGGING_CONFIG,
  31. config
  32. };
  33. }