mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
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: bigint;
|
|
imagePath: string;
|
|
}
|
|
|
|
export interface IOCloningMode {
|
|
kind: "add";
|
|
clonedNoteId: bigint;
|
|
}
|
|
|
|
export interface IOEditingMode {
|
|
kind: "edit";
|
|
noteId: bigint;
|
|
}
|
|
|
|
export type IOMode = IOAddingMode | IOEditingMode | IOCloningMode;
|