anki-apkg-generator
Version:
generate anki's apkg file by code
13 lines (12 loc) • 323 B
TypeScript
import type Db from './database';
import type Note from './note';
export default class Deck {
id: number;
name: string;
description?: string;
notes: Note[];
constructor(name: string, description?: string);
setId(id: number): this;
addNote(note: Note): this;
writeToDatabase(db: Db): void;
}