refactor: use switch/case in parser, move options

- Replace if/else chains with switch/case in ical-parser
- Move CalendarSourceOptions to calendar-source.ts

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-02-14 15:29:49 +00:00
parent 3010eb8990
commit e8ba49d7bb
4 changed files with 40 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
export { CalendarKey, type CalendarContext } from "./calendar-context.ts"
export { CalendarSource } from "./calendar-source.ts"
export { CalendarSource, type CalendarSourceOptions } from "./calendar-source.ts"
export {
CalendarEventStatus,
AttendeeRole,
@@ -13,5 +13,4 @@ export {
type CalendarAlarm,
type CalendarEventData,
type CalendarFeedItem,
type CalendarSourceOptions,
} from "./types.ts"