diff --git a/packages/firestore/src/local/simple_db.ts b/packages/firestore/src/local/simple_db.ts index b7d94e332a5..b79aee50c54 100644 --- a/packages/firestore/src/local/simple_db.ts +++ b/packages/firestore/src/local/simple_db.ts @@ -274,12 +274,10 @@ export class SimpleDbTransaction { static open( db: IDBDatabase, - mode: string, + mode: IDBTransactionMode, objectStoreNames: string[] ): SimpleDbTransaction { - return new SimpleDbTransaction( - db.transaction(objectStoreNames, mode as AnyDuringMigration) - ); + return new SimpleDbTransaction(db.transaction(objectStoreNames, mode)); } constructor(private readonly transaction: IDBTransaction) {