mirror of
https://github.com/ankitects/anki.git
synced 2025-11-07 21:27:14 -05: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;
|