perch-query-builder icon indicating copy to clipboard operation
perch-query-builder copied to clipboard

Type error

Open jubaidul-ctg-bd opened this issue 3 years ago • 0 comments

Describe the bug when I try to pass argument to "PerchQueryBuilder" I got a error given bellow -

Argument of type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/repository/Repository").Repository<import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/src/transactions/transaction.entity").Transaction>' is not assignable to parameter of type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/repository/Repository").Repository<import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/src/transactions/transaction.entity").Transaction>'. The types of 'manager.connection.options' are incompatible between these types. Type 'DataSourceOptions' is not assignable to type 'ConnectionOptions'. Type 'MysqlConnectionOptions' is not assignable to type 'ConnectionOptions'. Type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/driver/mysql/MysqlConnectionOptions").MysqlConnectionOptions' is not assignable to type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/driver/mysql/MysqlConnectionOptions").MysqlConnectionOptions'. Types of property 'entities' are incompatible. Type 'MixedList<string | Function | EntitySchema>' is not assignable to type '(string | Function | EntitySchema)[]'. Type '(string | Function | import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/entity-schema/EntitySchema").EntitySchema)[]' is not assignable to type '(string | Function | import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/entity-schema/EntitySchema").EntitySchema)[]'. Type 'string | Function | import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/entity-schema/EntitySchema").EntitySchema' is not assignable to type 'string | Function | import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/entity-schema/EntitySchema").EntitySchema'. Type 'EntitySchema' is not assignable to type 'string | Function | EntitySchema'. Type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/entity-schema/EntitySchema").EntitySchema' is not assignable to type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/entity-schema/EntitySchema").EntitySchema'. The types of 'options.columns' are incompatible between these types. Type '{ [x: string]: import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/entity-schema/EntitySchemaColumnOptions").EntitySchemaColumnOptions; }' is not assignable to type '{ [x: string]: import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/entity-schema/EntitySchemaColumnOptions").EntitySchemaColumnOptions; }'. 'string' index signatures are incompatible. Type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/entity-schema/EntitySchemaColumnOptions").EntitySchemaColumnOptions' is not assignable to type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/entity-schema/EntitySchemaColumnOptions").EntitySchemaColumnOptions'. Types of property 'type' are incompatible. Type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/typeorm/driver/types/ColumnTypes").ColumnType' is not assignable to type 'import("/Users/dev/AnchorBlock/anchorblock-dashboard-backend/node_modules/perch-query-builder/node_modules/typeorm/driver/types/ColumnTypes").ColumnType'. Type '"float64"' is not assignable to type 'ColumnType'. Did you mean '"float4"'?

jubaidul-ctg-bd avatar Sep 22 '22 09:09 jubaidul-ctg-bd