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

Add index.d.ts file and module resolve setting #11

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

black7375
Copy link
Contributor

First of all, thanks for a nice package.

The reason for this PR is that the following error has occurred:

Could not find a declaration file for module 'zoov'. '$PROJECT_PATH/node_modules/.store/zoov-virtual-300f1217b1/node_modules/zoov/index.js' implicitly has an 'any' type.
  There are types at '$PROJECT_PATH/node_modules/zoov/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'zoov' library may need to update its package.json or typings.ts(7016)

There is no file index.d.ts.
https://www.npmjs.com/package/zoov?activeTab=code
image

This patch is as follows:

@InfiniteXyy InfiniteXyy merged commit 7073e25 into InfiniteXyy:main Jun 30, 2023
1 check passed
@InfiniteXyy
Copy link
Owner

Thanks for your contribution! I will publish a new version.

@black7375 black7375 deleted the black7375-patch-1 branch June 30, 2023 03:01
@InfiniteXyy
Copy link
Owner

0.5.5 published, thank you again

@black7375
Copy link
Contributor Author

I think this API is comfortable.

const [{ state }, { action }, { selector }] = useStore();
const [state, { action }, { selector }] = useStore();

Thank you for a good library.

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.

None yet

2 participants