text-editor-drcsystems
Version:
Text Editor Made with Love by DRC Systems
8 lines (7 loc) • 306 B
TypeScript
import type { LexicalEditor } from 'lexical';
declare type JsonState = Parameters<LexicalEditor['parseEditorState']>[0] | null;
declare type Options = {
timeoutMs?: number;
};
declare const useSyncWithInputJson: (json?: JsonState, { timeoutMs }?: Options) => void;
export default useSyncWithInputJson;