Skip to content

Commit 5be8c06

Browse files
committed
Fix Activity.recurrence type
1 parent 2aa5b8f commit 5be8c06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

twister/src/plot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export type Activity = ActivityCommon & {
290290
* For recurring event exceptions, points to the root recurring activity.
291291
* Used when an individual occurrence of a recurring event is modified.
292292
*/
293-
recurrence: ActivityCommon | null;
293+
recurrence: Activity | null;
294294
/**
295295
* For recurring event exceptions, the original occurrence date being overridden.
296296
* Used to identify which occurrence of a recurring event this exception replaces.
@@ -451,7 +451,7 @@ export type Note = Omit<ActivityCommon, "type"> & {
451451
*/
452452
export type NewNote = Partial<Omit<Note, "id" | "author" | "activity">> & {
453453
/** Reference to the parent activity (required) */
454-
activity: Pick<ActivityCommon, "id">;
454+
activity: Pick<Activity, "id">;
455455

456456
/**
457457
* Format of the note content. Determines how the note is processed:

0 commit comments

Comments
 (0)