Skip to content

Commit

Permalink
chore: typings
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Feb 20, 2024
1 parent 5fb97c1 commit 220b05e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/settings/modals/event/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
TextAreaComponent,
TFile,
} from "obsidian";
import type { CalDate, Calendar, CalEvent } from "../../../@types";
import type { CalDate, Calendar, CalEvent, CalEventDate } from "../../../@types";

import { dateString, nanoid } from "../../../utils/functions";

Expand Down Expand Up @@ -55,7 +55,7 @@ export class CreateEventModal extends CalendariumModal {
constructor(
public calendar: Calendar,
event?: CalEvent,
date?: { month: number; day: number; year: number }
date?: CalDate | CalEventDate
) {
super(app);
if (event) {
Expand Down Expand Up @@ -468,7 +468,7 @@ export class CreateEventModal extends CalendariumModal {
export async function addEventWithModal(
plugin: Calendarium,
calendar: Calendar,
date: CalDate,
date: CalDate | CalEventDate,
event?: CalEvent
) {
const modal = new CreateEventModal(calendar, event, date);
Expand Down

0 comments on commit 220b05e

Please sign in to comment.