on-codemerge
Version:
A WYSIWYG editor for on-codemerge is a user-friendly interface that allows users to edit and view their code in real time, exactly as it will appear in the final product
40 lines (39 loc) • 816 B
TypeScript
export interface Timer {
id: string;
title: string;
description?: string;
targetDate: Date;
targetTime: string;
color?: string;
category?: string;
tags?: string[];
isActive: boolean;
createdAt: number;
updatedAt: number;
}
export interface CreateTimerData {
title: string;
description?: string;
targetDate: Date;
targetTime: string;
color?: string;
category?: string;
tags?: string[];
}
export interface UpdateTimerData {
title?: string;
description?: string;
targetDate?: Date;
targetTime?: string;
color?: string;
category?: string;
tags?: string[];
isActive?: boolean;
}
export interface TimerTimeLeft {
days: number;
hours: number;
minutes: number;
seconds: number;
isExpired: boolean;
}