22 lines
701 B
TypeScript
22 lines
701 B
TypeScript
import { Action } from 'redux';
|
|
|
|
import { TROUBLESHOOTING_NOTIFICATION } from './actionsTypes';
|
|
import { ITroubleshootingNotification } from '../reducers/troubleshootingNotification';
|
|
|
|
type TSetTroubleshootingNotification = Action & { payload: Partial<ITroubleshootingNotification> };
|
|
|
|
export type TActionTroubleshootingNotification = Action & TSetTroubleshootingNotification;
|
|
|
|
export function requestTroubleshootingNotification(): Action {
|
|
return {
|
|
type: TROUBLESHOOTING_NOTIFICATION.REQUEST
|
|
};
|
|
}
|
|
|
|
export function setTroubleshootingNotification(payload: Partial<ITroubleshootingNotification>): TSetTroubleshootingNotification {
|
|
return {
|
|
type: TROUBLESHOOTING_NOTIFICATION.SET,
|
|
payload
|
|
};
|
|
}
|