@vestcards/shared 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/date-Bn1ahM0R.cjs +1 -0
- package/dist/date-D5P-dKAx.js +134 -0
- package/dist/date.cjs +1 -1
- package/dist/date.d.ts +35 -0
- package/dist/date.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +31 -0
- package/dist/index.js +59 -52
- package/dist/spaced-repetition.cjs +1 -1
- package/dist/spaced-repetition.d.ts +25 -4
- package/dist/spaced-repetition.js +243 -222
- package/package.json +1 -1
- package/dist/date-DS8JYZte.js +0 -103
- package/dist/date-DoLsSDIb.cjs +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Card } from 'ts-fsrs';
|
|
2
2
|
|
|
3
|
+
export declare function calculateRetentionPercentage(elapsedDays: number, stability: number): number;
|
|
4
|
+
|
|
5
|
+
export declare function calculateRetrievability(elapsedDays: number, stability: number): number;
|
|
6
|
+
|
|
3
7
|
export declare const defaultSessionData: ISessionData;
|
|
4
8
|
|
|
5
9
|
/**
|
|
@@ -22,6 +26,10 @@ export declare class FlashcardSessionManager {
|
|
|
22
26
|
|
|
23
27
|
export declare const FSRS_RETENTION = 0.9;
|
|
24
28
|
|
|
29
|
+
export declare const FSRS_RETENTION_FACTOR: number;
|
|
30
|
+
|
|
31
|
+
export declare const FSRS_RETRIEVABILITY_DECAY = 0.1542;
|
|
32
|
+
|
|
25
33
|
export declare function getNextCardFromSession(data: ISessionData, recentlyReviewed?: Set<string>): ISessionCard | undefined;
|
|
26
34
|
|
|
27
35
|
/**
|
|
@@ -97,6 +105,8 @@ declare interface ISessionData {
|
|
|
97
105
|
stats: IStudyStats;
|
|
98
106
|
}
|
|
99
107
|
|
|
108
|
+
export declare const isRecommendedLearningSettings: (learnDailyLimit: number | null, newCardsPerDeckDailyLimit: number | null) => boolean;
|
|
109
|
+
|
|
100
110
|
declare interface IStudyStats {
|
|
101
111
|
review: number;
|
|
102
112
|
learning: number;
|
|
@@ -104,11 +114,22 @@ declare interface IStudyStats {
|
|
|
104
114
|
total: number;
|
|
105
115
|
}
|
|
106
116
|
|
|
107
|
-
export declare const
|
|
108
|
-
|
|
109
|
-
|
|
117
|
+
export declare const LEARNING_SETTINGS_LIMITS: {
|
|
118
|
+
readonly learnDailyLimit: {
|
|
119
|
+
readonly recommended: 200;
|
|
120
|
+
readonly min: 100;
|
|
121
|
+
readonly max: 500;
|
|
122
|
+
readonly step: 50;
|
|
123
|
+
};
|
|
124
|
+
readonly newCardsPerDeckDailyLimit: {
|
|
125
|
+
readonly recommended: 10;
|
|
126
|
+
readonly min: 1;
|
|
127
|
+
readonly max: 50;
|
|
128
|
+
readonly step: 5;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
110
131
|
|
|
111
|
-
export declare const
|
|
132
|
+
export declare const MAX_CARDS_TO_FETCH = 50;
|
|
112
133
|
|
|
113
134
|
export declare function mergeFsrsCard(fsrsCard: Card, card: ICardReview): ICardReview;
|
|
114
135
|
|