TS-FSRS
    Preparing search index...

    Interface IFSRS

    interface IFSRS {
        clearStrategy(mode?: StrategyMode): this;
        forget(
            card: Card | CardInput,
            now: DateInput,
            reset_count?: boolean,
        ): RecordLogItem;
        forget<R>(
            card: Card | CardInput,
            now: DateInput,
            reset_count: undefined | boolean,
            afterHandler: (recordLogItem: RecordLogItem) => R,
        ): R;
        get_retrievability(
            card: Card | CardInput,
            now?: DateInput,
            format?: true,
        ): string;
        get_retrievability(
            card: Card | CardInput,
            now?: DateInput,
            format?: false,
        ): number;
        next(card: Card | CardInput, now: DateInput, grade: Grade): RecordLogItem;
        next<R>(
            card: Card | CardInput,
            now: DateInput,
            grade: Grade,
            afterHandler: (recordLog: RecordLogItem) => R,
        ): R;
        repeat(card: Card | CardInput, now: DateInput): IPreview;
        repeat<R>(
            card: Card | CardInput,
            now: DateInput,
            afterHandler: (recordLog: IPreview) => R,
        ): R;
        reschedule<T = RecordLogItem>(
            current_card: Card | CardInput,
            reviews?: FSRSHistory[],
            options?: RequireOnly<RescheduleOptions<T>, "recordLogHandler">,
        ): IReschedule<T>;
        reschedule(
            current_card: Card | CardInput,
            reviews?: FSRSHistory[],
            options?: Partial<RescheduleOptions<RecordLogItem>>,
        ): IReschedule<RecordLogItem>;
        rollback(card: Card | CardInput, log: ReviewLogInput): Card;
        rollback<R>(
            card: Card | CardInput,
            log: ReviewLogInput,
            afterHandler: (prevCard: Card) => R,
        ): R;
        useStrategy<T extends StrategyMode>(
            mode: T,
            handler: TStrategyHandler<T>,
        ): this;
    }

    Implemented by

    Index

    Methods