signal-desktop/ts/state/ducks/noop.ts

17 lines
315 B
TypeScript
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2019 Signal Messenger, LLC
2020-10-30 20:34:04 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
import type { ReadonlyDeep } from 'type-fest';
export type NoopActionType = ReadonlyDeep<{
2019-01-14 21:49:58 +00:00
type: 'NOOP';
payload: null;
}>;
export function noopAction(): NoopActionType {
return {
type: 'NOOP',
payload: null,
};
}