Sanity Library Reference Docs
    Preparing search index...

    Interface CopyPasteContextTypeBeta

    interface CopyPasteContextType {
        onCopy: (
            path: Path,
            value: FormDocumentValue,
            options: CopyOptions,
        ) => Promise<void>;
        onPaste: (
            targetPath: Path,
            value: FormDocumentValue,
            options: PasteOptions,
        ) => Promise<void>;
        setDocumentMeta: (documentMeta: DocumentMeta) => void;
    }
    Index

    Properties

    onCopy: (
        path: Path,
        value: FormDocumentValue,
        options: CopyOptions,
    ) => Promise<void>
    onPaste: (
        targetPath: Path,
        value: FormDocumentValue,
        options: PasteOptions,
    ) => Promise<void>
    setDocumentMeta: (documentMeta: DocumentMeta) => void