@drcpythonmfe/lexical-playground
Version:
A temporary packaged fork of Lexical's official playground.
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;