nestjsx / nestjs-typeorm-paginate

:page_with_curl: Pagination response object function + types for typeorm + nestjs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

compilation nestjs-typeorm-paginate/dist/paginate.d.ts error

christopheeyl opened this issue · comments

Since I have upgraded my json package I am facing compilation errors

`node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:94 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.

4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository, options: IPaginationOptions, searchOptions?: FindOptionsWhere | FindManyOptions): Promise<Pagination<T, CustomMetaType>>;
~

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:34
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository, options: IPaginationOptions, searchOptions?: FindOptionsWhere | FindManyOptions): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an extends ObjectLiteral constraint.

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:224 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.

4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository, options: IPaginationOptions, searchOptions?: FindOptionsWhere | FindManyOptions): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:4:37
4 export declare function paginate<T, CustomMetaType = IPaginationMeta>(repository: Repository, options: IPaginationOptions, searchOptions?: FindOptionsWhere | FindManyOptions): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an extends ObjectLiteral constraint.

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:104 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.

5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<Pagination<T, CustomMetaType>>;
~

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:34
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an extends ObjectLiteral constraint.

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:176 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.

5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:5:37
5 export declare function paginate<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<Pagination<T, CustomMetaType>>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an extends ObjectLiteral constraint.

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:6:129 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.

6 export declare function paginateRaw<T, CustomMetaType extends ObjectLiteral = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<Pagination<T, CustomMetaType>>;
~

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:6:37
6 export declare function paginateRaw<T, CustomMetaType extends ObjectLiteral = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<Pagination<T, CustomMetaType>>;
~
This type parameter might need an extends ObjectLiteral constraint.

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:118 - error TS2344: Type 'T' does not satisfy the constraint 'ObjectLiteral'.

7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<[Pagination<T, CustomMetaType>, Partial[]]>;
~

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:48
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<[Pagination<T, CustomMetaType>, Partial[]]>;
~
This type parameter might need an extends ObjectLiteral constraint.

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:191 - error TS2344: Type 'CustomMetaType' does not satisfy the constraint 'ObjectLiteral'.

7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<[Pagination<T, CustomMetaType>, Partial[]]>;
~~~~~~~~~~~~~~

node_modules/nestjs-typeorm-paginate/dist/paginate.d.ts:7:51
7 export declare function paginateRawAndEntities<T, CustomMetaType = IPaginationMeta>(queryBuilder: SelectQueryBuilder, options: IPaginationOptions): Promise<[Pagination<T, CustomMetaType>, Partial[]]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This type parameter might need an extends ObjectLiteral constraint.

[15:32:45] Found 7 errors. Watching for file changes.`

I am using "nestjs-typeorm-paginate": "^4.0.2", and "typeorm": "^0.3.7"

I removed to my tsconfig.ts
"strictNullChecks": true, "strictFunctionTypes": true

and added "skipLibCheck": true