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
When running the typecheck node task, I get the following error:
test/example-typing-usage/expo-sqlite.ts:14:32 - error TS2345: Argument of type 'SQLiteDatabase' is not assignable to parameter of type 'Database'.
Type 'SQLiteDatabase' is not assignable to type 'WebSQLDatabase & { _name?: string | undefined; }'.
Type 'SQLiteDatabase' is missing the following properties from type 'WebSQLDatabase': version, transaction, readTransaction
This happens in the expo-sqlite example because electrify expects an implementation of either Database or WebSQLDatabase interfaces from expo-sqlite.
Hi @icehaunter ! Thank you for the prompt response. I actually had installed dependencies with npm, and it seems I had another version of expo-sqlite with it. Installing dependencies again with pnpm as you indicate solved it.
Thank you again!
When running the
typecheck
node task, I get the following error:This happens in the expo-sqlite example because
electrify
expects an implementation of eitherDatabase
orWebSQLDatabase
interfaces fromexpo-sqlite
.Even if
expo-sqlite
does declare and export aDatabase
interface, theiropenDatabase
function returns an instance ofSQLiteDatabase
, which doesn't implement it.I see that this
electrify
is tested with a mock implementation ofDatabase
. Did you have this type mismatch in mind when running this specific case?The text was updated successfully, but these errors were encountered: