Skip to content

Commit b88a206

Browse files
committed
CCM-15676: type improvement
1 parent ca2ce1a commit b88a206

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lambdas/nhsapp-status-handler/src/app/ttl-actions.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import { TtlRecord } from 'types/types';
44

55
export type TtlItem = TtlRecord | undefined;
66

7-
export type TtlActionOutcome = {
8-
result: 'success' | 'failed';
9-
ttlItem?: TtlItem;
10-
};
7+
export type TtlActionOutcome =
8+
| { result: 'success'; ttlItem: TtlItem }
9+
| { result: 'failed' };
1110

1211
export class TtlActions {
1312
constructor(

0 commit comments

Comments
 (0)