| 1 | import type { Editor } from './editor.interface.js'; |
| 2 | |
| 3 | export interface EditCommand { |
| 4 | /** The row of the cell being edited */ |
| 5 | row: number; |
| 6 | |
| 7 | /** The column of the cell being edited */ |
| 8 | cell: number; |
| 9 | |
| 10 | /** a reference to the cell editor */ |
| 11 | editor: Editor | any; |
| 12 | |
| 13 | /** The result of calling editor.serializeValue() right before destroying the editor */ |
| 14 | serializedValue: any; |
| 15 | |
| 16 | /** The result of calling editor.serializeValue() before the changes have been made by the user */ |
| 17 | prevSerializedValue: any; |
| 18 | |
| 19 | /** Call to commit changes */ |
| 20 | execute: () => void; |
| 21 | |
| 22 | /** Call to undo (rollback) changes */ |
| 23 | undo: () => void; |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected