umami-software / api-client

API client for Umami Analytics
MIT License
14 stars 11 forks source link

Return a wrong type getEventDataEvents: object instead of object[] #11

Open skobak opened 7 months ago

skobak commented 7 months ago

Hi, thank you for your work. I think the types on getEventDataEvents should get Umami.WebsiteEventData[] instead of Umami.WebsiteEventData to return a right type?

getEventDataEvents(websiteId: string, params: { startAt: number; endAt: number; event?: string; }): Promise<ApiResponse<Umami.WebsiteEventData[]>>;