Skip to content

Commit

Permalink
Merge pull request #436 from flawnn/flawnn-patch-registersingleton
Browse files Browse the repository at this point in the history
fix: add generic type annotation to `registerSingleton()` call
  • Loading branch information
Milad-Akarie authored Mar 13, 2024
2 parents d584155 + e99bc44 commit 0306827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion injectable/lib/src/get_it_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class GetItHelper {
if (_canRegister(registerFor)) {
if (preResolve) {
return factoryFunc().then(
(instance) => getIt.registerSingleton(
(instance) => getIt.registerSingleton<T>(
instance,
instanceName: instanceName,
signalsReady: signalsReady,
Expand Down

0 comments on commit 0306827

Please sign in to comment.