@timothyw/pat-common 1.0.44 → 1.0.45
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.
|
@@ -35,8 +35,9 @@ export interface HabitStats {
|
|
|
35
35
|
missedDays: number;
|
|
36
36
|
completionRate: number;
|
|
37
37
|
}
|
|
38
|
+
export type HabitEntry = ToDateString<HabitEntryData>;
|
|
38
39
|
export type Habit = ToDateString<HabitData> & {
|
|
39
|
-
entries:
|
|
40
|
+
entries: HabitEntry[];
|
|
40
41
|
stats: HabitStats;
|
|
41
42
|
};
|
|
42
43
|
export declare const toHabit: (data: HabitData, entries: HabitEntryData[], stats: HabitStats) => Habit;
|
package/package.json
CHANGED
|
@@ -41,8 +41,10 @@ export interface HabitStats {
|
|
|
41
41
|
completionRate: number;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
export type HabitEntry = ToDateString<HabitEntryData>;
|
|
45
|
+
|
|
44
46
|
export type Habit = ToDateString<HabitData> & {
|
|
45
|
-
entries:
|
|
47
|
+
entries: HabitEntry[];
|
|
46
48
|
stats: HabitStats;
|
|
47
49
|
}
|
|
48
50
|
|