Anki/ts/routes/image-occlusion/lib.ts
llama 9c0911891d
Fix "Create copy" for IO notes (#3730)
* expose get_image_occlusion_fields

* fix create copy for io

* revert current impl

* passthru original note id when creating copy

* add IOCloningMode

* fix create copy for io
2025-01-17 16:03:00 +11:00

20 lines
449 B
TypeScript

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export interface IOAddingMode {
kind: "add";
notetypeId: number;
imagePath: string;
}
export interface IOCloningMode {
kind: "add";
clonedNoteId: number;
}
export interface IOEditingMode {
kind: "edit";
noteId: number;
}
export type IOMode = IOAddingMode | IOEditingMode | IOCloningMode;