mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-07-05 21:05:17 +01:00
74f5be9239
Co-authored-by: Jamie <113370520+jamiebuilds-signal@users.noreply.github.com>
17 lines
347 B
TypeScript
17 lines
347 B
TypeScript
// Copyright 2019 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { ReadonlyDeep } from 'type-fest';
|
|
|
|
export type NoopActionType = ReadonlyDeep<{
|
|
type: `NOOP/${string}`;
|
|
payload: null;
|
|
}>;
|
|
|
|
export function noopAction(cause: string): NoopActionType {
|
|
return {
|
|
type: `NOOP/${cause}`,
|
|
payload: null,
|
|
};
|
|
}
|