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

17 lines
315 B
TypeScript
Raw Normal View History

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