Skip to content
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

fix typescript cannot infer from mappedState #41

Merged
merged 2 commits into from
May 11, 2024

Conversation

hanyf
Copy link
Contributor

@hanyf hanyf commented May 11, 2024

Hello, I encountered some problem when using this package, and tried to resolve it. hope it helps.

  1. fix a problem of typescript inferring from mappedState
 const mappedState = mapState({
    loading: () => {},
    ...
 });

mappedStgate.loading()
             ^^^^^^ --> Property loading does not exist on type unknown
  1. fix a problem when build typescript d.ts when this project under parent's node_moudes, which not generates all d.ts.

@alexander-heimbuch
Copy link
Owner

Thanks a lot!

@alexander-heimbuch alexander-heimbuch merged commit b714fff into alexander-heimbuch:master May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants