20 lines
533 B
TypeScript
20 lines
533 B
TypeScript
import { SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID } from './actionTypes';
|
|
|
|
/**
|
|
* Sets UID of the the pending notification to use it when hiding
|
|
* the notification is necessary, or unset it when undefined (or no param) is
|
|
* passed.
|
|
*
|
|
* @param {?number} uid - The UID of the notification.
|
|
* @returns {{
|
|
* type: SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID,
|
|
* uid: number
|
|
* }}
|
|
*/
|
|
export function setNoAudioSignalNotificationUid(uid?: string) {
|
|
return {
|
|
type: SET_NO_AUDIO_SIGNAL_NOTIFICATION_UID,
|
|
uid
|
|
};
|
|
}
|