refactor: Convert all enums to const object types in nodes-base (no-changelog) (#14131)

This commit is contained in:
Alex Grozav
2025-03-24 14:40:19 +02:00
committed by GitHub
parent defeb2e817
commit b9608647ca
31 changed files with 422 additions and 345 deletions

View File

@@ -1,9 +1,11 @@
import type { IHourlyRateDto, IMembershipDto } from './CommonDtos';
const enum EstimateEnum {
AUTO = 'AUTO',
MANUAL = 'MANUAL',
}
const Estimates = {
AUTO: 'AUTO',
MANUAL: 'MANUAL',
} as const;
type EstimateEnum = (typeof Estimates)[keyof typeof Estimates];
interface IEstimateDto {
estimate: string;
@@ -40,10 +42,12 @@ export interface IProjectRequest {
tasks: ITaskDto;
}
const enum TaskStatusEnum {
ACTIVE = 'ACTIVE',
DONE = 'DONE',
}
const TaskStatuses = {
ACTIVE: 'ACTIVE',
DONE: 'DONE',
} as const;
type TaskStatusEnum = (typeof TaskStatuses)[keyof typeof TaskStatuses];
export interface ITaskDto {
assigneeIds: object;