Skip to content

Commit 5df5bef

Browse files
authored
Split out "automation status" type in admin-x-framework types (TryGhost#27851)
towards https://linear.app/ghost/issue/NY-1267 This is a types-only change that should have no user impact. I think this is a useful change on its own but will also make [an upcoming change][0] a little easier. [0]: https://linear.app/ghost/issue/NY-1267
1 parent 151a775 commit 5df5bef

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/admin-x-framework/src/api/automations.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import {Meta, createQuery, createQueryWithId} from '../utils/api/hooks';
22

3+
export type AutomationStatus = 'active' | 'inactive';
4+
35
export type Automation = {
46
id: string;
57
name: string;
68
slug: string;
7-
status: 'active' | 'inactive';
9+
status: AutomationStatus;
810
}
911

1012
export type AutomationWaitAction = {

0 commit comments

Comments
 (0)