13 lines
257 B
TypeScript
13 lines
257 B
TypeScript
import type { SpreadsheetCommand } from '../types';
|
|
|
|
export function createSetCellValueCommand(
|
|
undo: () => void | Promise<void>,
|
|
redo: () => void | Promise<void>,
|
|
): SpreadsheetCommand {
|
|
return {
|
|
label: 'setCellValue',
|
|
undo,
|
|
redo,
|
|
};
|
|
}
|