diff options
| author | naoNao89 <90588855+naoNao89@users.noreply.github.com> | 2025-07-30 00:14:18 +0700 |
|---|---|---|
| committer | naoNao89 <90588855+naoNao89@users.noreply.github.com> | 2025-07-30 00:14:18 +0700 |
| commit | fbff145036db94019607c33f388e04558a937cc3 (patch) | |
| tree | 8d3d55550f563d7a2bbf204f5685634cf07f82ee /apps/web | |
| parent | 073cb817d342b0b54cf5ad156435a00c9bb91168 (diff) | |
| download | opencut-fbff145036db94019607c33f388e04558a937cc3.tar.gz | |
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
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/src/lib/export-utils.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/web/src/lib/export-utils.ts b/apps/web/src/lib/export-utils.ts index b09434f1..1fc0505b 100644 --- a/apps/web/src/lib/export-utils.ts +++ b/apps/web/src/lib/export-utils.ts @@ -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; |
