@remotion/studio
Version:
APIs for interacting with the Remotion Studio
24 lines (23 loc) • 847 B
TypeScript
import React from 'react';
import type { _InternalTypes } from 'remotion';
export type State = {
str: string;
value: Record<string, unknown>;
validJSON: true;
zodValidation: Zod.SafeParseReturnType<unknown, unknown>;
} | {
str: string;
validJSON: false;
error: string;
};
export type PropsEditType = 'input-props' | 'default-props';
export declare const DataEditor: React.FC<{
readonly unresolvedComposition: _InternalTypes['AnyComposition'];
readonly defaultProps: Record<string, unknown>;
readonly setDefaultProps: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
readonly mayShowSaveButton: boolean;
readonly propsEditType: PropsEditType;
readonly saving: boolean;
readonly setSaving: React.Dispatch<React.SetStateAction<boolean>>;
readonly readOnlyStudio: boolean;
}>;