Skip to content

v2 .offset & .limit typings denote return type as wrapped in a Page #1585

@mastermatt

Description

@mastermatt

interface OffsetMethod<QB extends AnyQueryBuilder> {
(offset: number): PageQueryBuilder<QB>;
}
interface LimitMethod<QB extends AnyQueryBuilder> {
(limit: number): PageQueryBuilder<QB>;
}

I think, both of these methods should just be returning QB instead of PageQueryBuilder<QB>.

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