Skip to content

Type error on getWebsiteStats function #1

@paulpopus

Description

@paulpopus

It looks like the extra params on the getWebsiteStats and getWebsiteMetrics are not marked as optional.

So in this function

const { data } = await client().getWebsiteStats(websiteId, {
    startAt: 1685566800000,
    endAt: 1686916052440,
    url: '/about'
  });

You get this error

Argument of type '{ startAt: number; endAt: number; url: string; }' is not assignable to parameter of type '{ startAt: number; endAt: number; url: string; referrer: string; title: string; query: string; event: string; os: string; browser: string; device: string; country: string; region: string; city: string; }'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions