function loadSortedEvents
loadSortedEvents(predicate: (e: EventWithCount) => boolean): Promise<{ events: EventWithCount[]; holidays: Holiday[]; }>

Load all events with holidays and return them sorted, filtered by predicate.

Parameters

predicate: (e: EventWithCount) => boolean

Return Type

Promise<{ events: EventWithCount[]; holidays: Holiday[]; }>

Usage

import { loadSortedEvents } from "docs/events.ts";