@remotion/renderer
Version:
Render Remotion videos using Node.js or Bun
21 lines (20 loc) • 648 B
TypeScript
import type { TypeOfOption } from '../client';
export type RemotionOption<SsrName extends string, Type> = {
name: string;
cliFlag: string;
ssrName: SsrName | null;
description: (mode: 'ssr' | 'cli') => React.ReactNode;
docLink: string | null;
type: Type;
getValue: (values: {
commandLine: Record<string, unknown>;
}, more?: any) => {
value: Type;
source: string;
};
setConfig: (value: Type) => void;
};
export type AnyRemotionOption<T> = RemotionOption<string, T>;
export type ToOptions<T extends Record<string, AnyRemotionOption<any>>> = {
[K in keyof T]: TypeOfOption<T[K]>;
};