Skip to content

Type 'Entity' does not satisfy the constraint 'ObjectLiteral' #80

Open
@1valdis

Description

@1valdis

Running this package with Typescript 4.9 and above results in the following error:

node_modules/typeorm-cursor-pagination/lib/Paginator.d.ts:34:42 - error TS2344: Type 'Entity' does not satisfy the constraint 'ObjectLiteral'.

34     paginate(builder: SelectQueryBuilder<Entity>): Promise<PagingResult<Entity>>;
                                            ~~~~~~

  node_modules/typeorm-cursor-pagination/lib/Paginator.d.ts:18:32
    18 export default class Paginator<Entity> {
                                      ~~~~~~
    This type parameter might need an `extends ObjectLiteral` constraint.

Found 1 error(s).

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