Type Alias error on generation
Closed this issue · 1 comments
srdrymn commented
I have a type alias as
typedef Json = Map<String, dynamic>;
I also have a
@factoryParam Json? defaultHeaders
in one of my @injectable
classes in a @module
Before injectable_generator 2.5.0, the mapping in the generator config file for the factoryParam was a type of Map<String, dynamic>?
which is fine. However, after upgraded to 2.5.0 the type alias mapped incorrectly as _i23.Json<String, dynamic>?
where _i23 is the dependency prefix. This mapping should either be the base type as before, or just _i23.Json?
Milad-Akarie commented
@srdrymn should be fixed in injectable_generator 2.5.1
Thanks for reporting.