remotion
Version:
Make videos programmatically
29 lines (28 loc) • 826 B
TypeScript
export type NumberFieldSchema = {
type: 'number';
min?: number;
max?: number;
step?: number;
default: number | undefined;
description?: string;
};
export type BooleanFieldSchema = {
type: 'boolean';
default: boolean;
description?: string;
};
export type RotationFieldSchema = {
type: 'rotation';
step?: number;
default: string | undefined;
description?: string;
};
export type TranslateFieldSchema = {
type: 'translate';
step?: number;
default: string | undefined;
description?: string;
};
export type SequenceFieldSchema = NumberFieldSchema | BooleanFieldSchema | RotationFieldSchema | TranslateFieldSchema;
export type SequenceSchema = Record<string, SequenceFieldSchema>;
export type SchemaKeysRecord<S extends SequenceSchema> = Record<keyof S, unknown>;