refactor: 💡 Port bulk actions to ts

This commit is contained in:
Jin
2025-03-19 14:22:40 +01:00
parent 91a963fafd
commit 1aa6c17b56
3 changed files with 30 additions and 11 deletions

View File

@@ -174,9 +174,9 @@ export type CommandMappings = {
callback: (value: NoteDetailWidget | PromiseLike<NoteDetailWidget>) => void;
};
executeWithTextEditor: CommandData &
ExecuteCommandData<TextEditor> & {
callback?: GetTextEditorCallback;
};
ExecuteCommandData<TextEditor> & {
callback?: GetTextEditorCallback;
};
executeWithCodeEditor: CommandData & ExecuteCommandData<CodeMirrorInstance>;
/**
* Called upon when attempting to retrieve the content element of a {@link NoteContext}.
@@ -368,6 +368,9 @@ type EventMappings = {
textTypeWidget: EditableTextTypeWidget;
text: string;
};
openBulkActionsDialog: {
selectedOrActiveNoteIds: string[];
};
};