-
Notifications
You must be signed in to change notification settings - Fork 28
Changing interface to type for ActionCreator<P> in 3.0-beta-2 #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
is this lib still maintained? |
@quantuminformation Yes! @MistyKuu That's because in 3.0 the There are a few other things I'd like to fix before releasing 3.0 stable, let's keep this open until then. For now, you can safely continue to use 2.5. And by the way, if what you're trying to achieve with this augmentation is extracting payload type from action creator type, you can use conditional types for that. |
Cool thanks @aikoven |
This happened after moving to the new native create react app --typescript. |
@quantuminformation Can you show the definition of |
|
If I turn off "strict": true, before we just had
|
Fixed it updating the generic type export const LoadIssue = actionCreator.async< null, IssueDetails , string>('LoadIssue'); |
Have you thought of setting up a discord server for this project, or adding it to reactiflux? |
There's not so much activity on this project. And honestly, I don't have much spare time to maintain a chat room. |
ok, thx anyway |
I'm currently using typescript-fsa version 2.5. I'm augmenting ActionCreator interface like this:
The reason I'm doing it is that I extended it with payloadType. In 3.0 I'm not able to do that since types in typescript cannot be augmented. Is there any reason why you decided to use type?
The text was updated successfully, but these errors were encountered: