You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ X ] Bug report
[ ] Feature request
[ ] Documentation issue or request
What is the current behavior?
I'm syncing the latest ngrx into Google and I'm getting the build error:
metadata[propertyName] = { dispatch };
~~~~~~~~~~~~~~~~~~~~~~
third_party/javascript/ngrx/modules/effects/src/effects_metadata.ts(56,5): error TS2536: Type 'string' cannot be used to index type 'EffectsMetadata'.
Expected behavior:
I think it doesn't like the fact that propertyName cannot be narrowed down to keyof T.
The fix would be to use less fancy Indexable EffectsMetadata, e.g. this works:
I'm submitting a...
What is the current behavior?
I'm syncing the latest ngrx into Google and I'm getting the build error:
metadata[propertyName] = { dispatch };
~~~~~~~~~~~~~~~~~~~~~~
third_party/javascript/ngrx/modules/effects/src/effects_metadata.ts(56,5): error TS2536: Type 'string' cannot be used to index type 'EffectsMetadata'.
Expected behavior:
I think it doesn't like the fact that propertyName cannot be narrowed down to keyof T.
The fix would be to use less fancy Indexable EffectsMetadata, e.g. this works:
The other option is to use ES6 Map altogether instead of Indexable.
Thoughts?
Minimal reproduction of the problem with instructions:
Version of affected browser(s),operating system(s), npm, node and ngrx:
Other information:
The text was updated successfully, but these errors were encountered: