Skip to content

APIUrlParams pagination error #5

Description

@MrAndriy

Hello I'm realy excited your project, and I found issue on frontend type APIUrlParams

When you trying to make pagination it's throw error because you cant pass pagination as object in type.

export type APIUrlParams<TContentTypeUID extends Common.UID.ContentType> =
  WithLocale<
    Params.Pick<
      TContentTypeUID,
      "fields" | "filters" | "sort" | "populate" | "publicationState"
    > & {
      pagination?: Params.Pick<TContentTypeUID, "pagination">;
    }
  >;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions