@dxos/app-framework - v0.16.0
    Preparing search index...

    Type Alias UndoMappingResult

    Lookup result from UndoRegistry.

    type UndoMappingResult = {
        context?: (input: any, output: any) => unknown;
        deriveContext: (input: any, output: any) => any | undefined;
        inverse: Operation.Definition<any, any>;
        merge?: (
            earlier: { input: any; output: any },
            later: { input: any; output: any },
        ) => { input: any; output: any };
        mergeKey?: (input: any, output: any) => string | undefined;
        message?: MessageProvider<Operation.Definition<any, any>>;
        scope?: (input: any, output: any) => string | undefined;
        toast?: boolean;
    }
    Index

    Properties

    context?: (input: any, output: any) => unknown
    deriveContext: (input: any, output: any) => any | undefined

    Returns undefined to indicate the operation is not undoable.

    inverse: Operation.Definition<any, any>
    merge?: (
        earlier: { input: any; output: any },
        later: { input: any; output: any },
    ) => { input: any; output: any }
    mergeKey?: (input: any, output: any) => string | undefined
    message?: MessageProvider<Operation.Definition<any, any>>

    Message provider - may be a static Label or a function.

    scope?: (input: any, output: any) => string | undefined
    toast?: boolean