mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 00:51:20 +00:00
Rename camelCase members to PascalCase in WeatherFeedItemType and CalendarFeedItemType to match TflFeedItemType and CalDavFeedItemType conventions. Co-authored-by: Ona <no-reply@ona.com>
23 lines
616 B
TypeScript
23 lines
616 B
TypeScript
import type { FeedItem } from "@aris/core"
|
|
|
|
import type { CalendarEventData } from "./types"
|
|
|
|
export const CalendarFeedItemType = {
|
|
Event: "calendar-event",
|
|
AllDay: "calendar-all-day",
|
|
} as const
|
|
|
|
export type CalendarFeedItemType = (typeof CalendarFeedItemType)[keyof typeof CalendarFeedItemType]
|
|
|
|
export interface CalendarEventFeedItem extends FeedItem<
|
|
typeof CalendarFeedItemType.Event,
|
|
CalendarEventData
|
|
> {}
|
|
|
|
export interface CalendarAllDayFeedItem extends FeedItem<
|
|
typeof CalendarFeedItemType.AllDay,
|
|
CalendarEventData
|
|
> {}
|
|
|
|
export type CalendarFeedItem = CalendarEventFeedItem | CalendarAllDayFeedItem
|