You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
This issue is happening quite often when I tried to upgrade typescript. This time, it's upgrading typescript from version 4.7.4 to 4.8.2
Stack trace
src/Orm.ts(14,27): error TS2344: Type 'MariaDbDriver' does not satisfy the constraint 'IDatabaseDriver<Connection>'.
The types returned by 'connect()' are incompatible between these types.
Type 'Promise<MariaDbConnection>' is not assignable to type 'Promise<Connection>'.
Type 'MariaDbConnection' is not assignable to type 'Connection'.
The types of 'platform.getSchemaGenerator' are incompatible between these types.
Type '(driver: IDatabaseDriver<Connection>, em?: SqlEntityManager<AbstractSqlDriver<AbstractSqlConnection>> | undefined) => SchemaGenerator' is not assignable to type '(driver: IDatabaseDriver<Connection>, em?: EntityManager<IDatabaseDriver<Connection>> | undefined) => ISchemaGenerator'.
Types of parameters 'em' and 'em' are incompatible.
Type 'EntityManager<IDatabaseDriver<Connection>> | undefined' is not assignable to type 'SqlEntityManager<AbstractSqlDriver<AbstractSqlConnection>> | undefined'.
Type 'EntityManager<IDatabaseDriver<Connection>>' is missing the following properties from type 'SqlEntityManager<AbstractSqlDriver<AbstractSqlConnection>>': createQueryBuilder, qb, raw, getKnex, execute
src/components/libraries/orm/Orm.ts(15,42): error TS2344: Type 'MariaDbDriver' does not satisfy the constraint 'IDatabaseDriver<Connection>'.
src/components/libraries/orm/Orm.ts(28,40): error TS2344: Type 'MariaDbDriver' does not satisfy the constraint 'IDatabaseDriver<Connection>'.
Types of property 'connect' are incompatible.
Type '() => Promise<MariaDbConnection>' is not assignable to type '() => Promise<Connection>'.
src/components/libraries/orm/Orm.ts(36,29): error TS2344: Type 'MariaDbDriver' does not satisfy the constraint 'IDatabaseDriver<Connection>'.
Describe the bug
This issue is happening quite often when I tried to upgrade typescript. This time, it's upgrading typescript from version 4.7.4 to 4.8.2
Stack trace
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error occurs
Additional context
This error is gone when I downgrade typescript to version 4.7.4
Versions
The text was updated successfully, but these errors were encountered: