mirror of https://github.com/AMT-Cheif/drift.git
Prefer `FutureOr<void>` over dynamic (#1288)
This commit is contained in:
parent
519e8328c8
commit
1c45a6857c
|
@ -5,7 +5,7 @@ const _zoneRootUserKey = #DatabaseConnectionUser;
|
|||
typedef _CustomWriter<T> = Future<T> Function(
|
||||
QueryExecutor e, String sql, List<dynamic> vars);
|
||||
|
||||
typedef _BatchRunner = dynamic Function(Batch batch);
|
||||
typedef _BatchRunner = FutureOr<void> Function(Batch batch);
|
||||
|
||||
/// Manages a [DatabaseConnection] to send queries to the database.
|
||||
abstract class DatabaseConnectionUser {
|
||||
|
|
Loading…
Reference in New Issue