mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)
This commit is contained in:
@@ -17,9 +17,11 @@ export interface ITask {
|
||||
upadtedAt?: Date;
|
||||
}
|
||||
|
||||
export const enum TaskStatus {
|
||||
WAITING = 'Waiting',
|
||||
INPROGRESS = 'InProgress',
|
||||
COMPLETED = 'Completed',
|
||||
CANCEL = 'Cancel',
|
||||
}
|
||||
export const TaskStatuses = {
|
||||
WAITING: 'Waiting',
|
||||
INPROGRESS: 'InProgress',
|
||||
COMPLETED: 'Completed',
|
||||
CANCEL: 'Cancel',
|
||||
} as const;
|
||||
|
||||
export type TaskStatus = (typeof TaskStatuses)[keyof typeof TaskStatuses];
|
||||
|
||||
Reference in New Issue
Block a user