lexical-remark
Version:
This package contains Markdown helpers and functionality for Lexical using remark-parse.
16 lines (15 loc) • 479 B
TypeScript
/// <reference types="react" />
import { type LexicalCommand } from 'lexical';
type AttachmentPayload = Readonly<{
filename: string;
url: string;
}>;
/**
* A command to insert an attachment. The argument is an {@link AttachmentPayload}.
*/
export declare const INSERT_ATTACHMENT_COMMAND: LexicalCommand<AttachmentPayload>;
/**
* A Lexical plugin to register the INSERT_ATTACHMENT_COMMAND
*/
export declare const AttachmentPlugin: () => JSX.Element | null;
export {};