Trilium Frontend API
    Preparing search index...

    Type Alias Action

    Action:
        | { type: "IDLE" }
        | { type: "UPDATE_NOW" }
        | { optionName: string; rawOptionValue: any; type: "SET_OPTION" }
        | { type: "RESET_OPTIONS" }
        | { type: "PREV" }
        | { type: "NEXT" }
        | { dateMarker: DateMarker; type: "CHANGE_DATE" }
        | { dateMarker?: DateMarker; type: "CHANGE_VIEW_TYPE"; viewType: string }
        | { selection: DateSpan; type: "SELECT_DATES" }
        | { type: "UNSELECT_DATES" }
        | { eventInstanceId: string; type: "SELECT_EVENT" }
        | { type: "UNSELECT_EVENT" }
        | { state: EventInteractionState; type: "SET_EVENT_DRAG" }
        | { type: "UNSET_EVENT_DRAG" }
        | { state: EventInteractionState; type: "SET_EVENT_RESIZE" }
        | { type: "UNSET_EVENT_RESIZE" }
        | { sources: EventSource<any>[]; type: "ADD_EVENT_SOURCES" }
        | { sourceId: string; type: "REMOVE_EVENT_SOURCE" }
        | { type: "REMOVE_ALL_EVENT_SOURCES" }
        | {
            isRefetch?: boolean;
            sourceIds?: string[];
            type: "FETCH_EVENT_SOURCES";
        }
        | {
            fetchId: string;
            fetchRange: DateRange
            | null;
            rawEvents: EventInput[];
            sourceId: string;
            type: "RECEIVE_EVENTS";
        }
        | {
            error: Error;
            fetchId: string;
            fetchRange: DateRange
            | null;
            sourceId: string;
            type: "RECEIVE_EVENT_ERROR";
        }
        | { eventStore: EventStore; type: "ADD_EVENTS" }
        | { eventStore: EventStore; type: "RESET_EVENTS" }
        | { rawEvents: EventInput[]; sourceId: string; type: "RESET_RAW_EVENTS" }
        | { eventStore: EventStore; type: "MERGE_EVENTS" }
        | { eventStore: EventStore; type: "REMOVE_EVENTS" }
        | { type: "REMOVE_ALL_EVENTS" }