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

actions.native.ts 400B

12345678910111213141516171819
  1. import { SET_CAR_MODE } from './actionTypes';
  2. export * from './actions.any';
  3. /**
  4. * Creates a (redux) action which tells whether we are in carmode.
  5. *
  6. * @param {boolean} enabled - Whether we are in carmode.
  7. * @returns {{
  8. * type: SET_CAR_MODE,
  9. * enabled: boolean
  10. * }}
  11. */
  12. export function setIsCarmode(enabled: boolean) {
  13. return {
  14. type: SET_CAR_MODE,
  15. enabled
  16. };
  17. }