mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* 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
20 lines
449 B
TypeScript
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;
|