Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

error TS2536: Type 'key' cannot be used to index type 'Store<string, S, G, {}> #2603

Closed
coader opened this issue Mar 9, 2024 · 0 comments
Closed

Comments

@coader
Copy link

coader commented Mar 9, 2024

Reproduction

error TS2536:

Steps to reproduce the bug

  • error TS2536: Type 'key' cannot be used to index type 'Store<string, S, G, {}>'.

354 [key in Keys]: () => Store<string, S, G, {}>[key];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in ../../node_modules/.pnpm/pinia@2.1.7_typescript@5.4.2_vue@3.4.21/node_modules/pinia/dist/pinia.d.ts:354

Expected behavior

it's ok yesterday, I don't know why and which package upgrade bring this

Actual behavior

  • error TS2536: Type 'key' cannot be used to index type 'Store<string, S, G, {}>'.

Additional information

No response

@vuejs vuejs locked and limited conversation to collaborators Mar 9, 2024
@posva posva converted this issue into discussion #2605 Mar 9, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant