vector / frontend /src /lib /clip-duration.ts
d-ragon's picture
Upload 674 files
689359a verified
Raw History Blame Contribute Delete
283 Bytes
export const CLIP_LENGTHS = ["auto", "short", "medium", "long"] as const;
export type ClipLength = (typeof CLIP_LENGTHS)[number];
export function isClipLength(value: unknown): value is ClipLength {
return typeof value === "string" && CLIP_LENGTHS.includes(value as ClipLength);
}