anki/ts/lib/cards.ts
Damien Elmes 15dcb09036
Detect incorrect usage of triple slash in TypeScript (#2524)
* Migrate check_copyright to Rust

* Add a new lint to check accidental usages of /// in ts/svelte comments

* Fix a bunch of incorrect jdoc comments

* Move contributor check into minilints

Will allow users to detect the issue locally with './ninja check'
before pushing to CI.

* Make Cargo.toml consistent with other crates
2023-05-26 12:49:44 +10:00

27 lines
652 B
TypeScript

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
export enum CardType {
New = 0,
Learn = 1,
Review = 2,
Relearn = 3,
}
export enum CardQueue {
/** due is the order cards are shown in */
New = 0,
/** due is a unix timestamp */
Learn = 1,
/** due is days since creation date */
Review = 2,
DayLearn = 3,
/** due is a unix timestamp. */
/** preview cards only placed here when failed. */
PreviewRepeat = 4,
/** cards are not due in these states */
Suspended = -1,
SchedBuried = -2,
UserBuried = -3,
}