選択できるのは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. }