Skip to content

Commit b342a80

Browse files
authored
feat(consts): make terminal statuses array const (#528)
This PR makes `ACTOR_JOB_TERMINAL_STATUSES` const. This was brought up during the worker TS rewrite.
1 parent a847e58 commit b342a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/consts/src/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const ACTOR_JOB_TERMINAL_STATUSES = [
5555
ACTOR_JOB_STATUSES.FAILED,
5656
ACTOR_JOB_STATUSES.TIMED_OUT,
5757
ACTOR_JOB_STATUSES.ABORTED,
58-
];
58+
] as const;
5959

6060
// NOTE: for legacy reasons these are lower-case, maybe we should migrate to upper case later.
6161
// these strings are also referenced from upstart-worker.conf !

0 commit comments

Comments
 (0)