Files
story-studio/remotion/node_modules/@remotion/renderer/dist/options/option.d.ts
2026-02-21 10:33:18 +01:00

21 lines
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]>;
};