Types are lost when components imported from method #1924
Unanswered
leo-coco
asked this question in
Help and Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reproduction
Steps to reproduce the bug
Expected behavior
The types should be preserved even if the method returning the components is not on the same file
Actual behavior
Types are lost if components are generated in a method that is not on the same file as the
defineStore
Additional information
If we merge
components.ts
andfactory.ts
, that is to say, ifgetSharedComponents
andpiniaFactory
are on the same file, then everything is working fine and types are automatically inferred infoo.ts
Beta Was this translation helpful? Give feedback.
All reactions