This seems to work when writing slices in typescript as shown here
1) Is there an equivalent workaround in JS?
2) Documentation for using createSlice() with either typescript or JS doesn't exist
Note: for support questions about the usage of the library, please ask questions on the gitter chat. The issue tracker is reserved for feature requests, bug reports and similar issues. Visit the gitter chat here.
I'm submitting a ...
[x ] Bug report
[ ] Feature request
[ ] Docs update
[ ] Support request => Please do not submit support requests here, see note at the top of this template.
What is the current behavior/state of the project?
What is the desired behavior?
If this is a feature request, what is the use case for changing the behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via a gist or similar.
Please tell us about your environment:
Library version: 1.0.0
Redux version: 4.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Edge XX]
Language: [all | TypeScript X.X | ES6/7 | ES5]
Other information
(e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
This seems to work when writing slices in typescript as shown here 1) Is there an equivalent workaround in JS? 2) Documentation for using createSlice() with either typescript or JS doesn't exist
Note: for support questions about the usage of the library, please ask questions on the gitter chat. The issue tracker is reserved for feature requests, bug reports and similar issues. Visit the gitter chat here.
I'm submitting a ...
What is the current behavior/state of the project?
What is the desired behavior?
If this is a feature request, what is the use case for changing the behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via a gist or similar.
Please tell us about your environment:
Other information
(e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)