add support for habit pinning (#105)

This commit is contained in:
Doh
2025-04-10 16:47:59 -04:00
committed by GitHub
parent f1e3ee5747
commit 685cb80321
6 changed files with 342 additions and 412 deletions

View File

@@ -44,6 +44,7 @@ export type Habit = {
completions: string[] // Array of UTC ISO date strings
isTask?: boolean // mark the habit as a task
archived?: boolean // mark the habit as archived
pinned?: boolean // mark the habit as pinned
userIds?: UserId[]
}
@@ -197,4 +198,4 @@ export type ParsedResultType = DateTime<true> | RRule | string | null // null if
export interface ParsedFrequencyResult {
message: string | null
result: ParsedResultType
}
}