Trilium Frontend API
    Preparing search index...

    Type Alias GetEventInfo<TEvent>

    GetEventInfo: TEvent extends { eventInfo: EventInfo }
        ? TEvent["eventInfo"]
        : EventInfo<
            TEvent["name"],
            TEvent extends { return: infer TReturn } ? TReturn : unknown,
        >

    Utility type that gets the EventInfo subclass for the given event.

    Type Parameters