We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca2ce1a commit b88a206Copy full SHA for b88a206
1 file changed
lambdas/nhsapp-status-handler/src/app/ttl-actions.ts
@@ -4,10 +4,9 @@ import { TtlRecord } from 'types/types';
4
5
export type TtlItem = TtlRecord | undefined;
6
7
-export type TtlActionOutcome = {
8
- result: 'success' | 'failed';
9
- ttlItem?: TtlItem;
10
-};
+export type TtlActionOutcome =
+ | { result: 'success'; ttlItem: TtlItem }
+ | { result: 'failed' };
11
12
export class TtlActions {
13
constructor(
0 commit comments