@ai-stack/payloadcms
Version:
<p align="center"> <img alt="Payload AI Plugin" src="assets/payload-ai-intro.gif" width="100%" /> </p>
17 lines (16 loc) • 514 B
TypeScript
import type { LexicalEditor } from 'lexical';
type SetSafeLexicalStateOptions = {
logErrors?: boolean;
};
export declare const normalizeLexicalState: (state: unknown) => {
root: {
type: string;
children: any[];
direction: {} | null;
format: string;
indent: number;
version: number;
};
} | null;
export declare const setSafeLexicalState: (state: unknown, editorInstance?: LexicalEditor | null, options?: SetSafeLexicalStateOptions) => boolean;
export {};