Skip to content

Commit 77f0861

Browse files
authored
Fixes resetLazySingleton argument (#3)
* fixes resetLazySingleton argument * update package maintainance
1 parent 5a17693 commit 77f0861

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.3.2](https://github.com/Stacked-Org/core/pull/3)
2+
- Fixes argument mismatch with get_it
3+
14
## [1.3.1](https://github.com/Stacked-Org/core/compare/v1.3.0...v1.3.1) (2023-04-12)
25

36

lib/src/code_generation/locator/stacked_locator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class StackedLocator {
398398
/// provide a [disposingFunction]. This function overrides the disposing
399399
/// you might have provided when registering.
400400
void resetLazySingleton<T extends Object>(
401-
{Object? instance,
401+
{T? instance,
402402
String? instanceName,
403403
void Function(T)? disposingFunction}) =>
404404
locator.resetLazySingleton<T>(

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stacked_shared
22
description: Shared code between the stacked packages.
3-
version: 1.3.1
3+
version: 1.3.2
44
homepage: https://github.com/FilledStacks/stacked/tree/master/packages/stacked_shared
55

66
environment:

0 commit comments

Comments
 (0)