fix: use export type for type exports in export-utils

- Change ExportOptions from interface to type export
- Change ExportProgress from interface to type export
- Addresses CodeRabbit warning about using export type for type exports
This commit is contained in:
naoNao89 2025-07-30 00:14:18 +07:00
parent 073cb817d3
commit fbff145036
1 changed files with 4 additions and 4 deletions

View File

@ -4,18 +4,18 @@ import { TimelineTrack, TimelineElement } from "@/types/timeline";
import { MediaItem } from "@/stores/media-store";
import { TProject } from "@/types/project";
export interface ExportOptions {
export type ExportOptions = {
format: "mp4" | "webm" | "mov";
quality: "low" | "medium" | "high";
resolution: "720p" | "1080p" | "4k";
fps: number;
}
};
export interface ExportProgress {
export type ExportProgress = {
phase: "preparing" | "processing" | "finalizing" | "complete";
progress: number; // 0-100
message: string;
}
};
export class VideoExporter {
private ffmpeg: FFmpeg | null = null;