-
Notifications
You must be signed in to change notification settings - Fork 14
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 TS2615 when accessing store.original in a unit test #69
Comments
Related: microsoft/TypeScript#38279 (comment) |
I have same error. |
Hi. I suggest you edit export type ToDirectStore<O extends StoreOptions> = ShowContent<{
readonly state: ShowContent<DirectState<O>>
getters: ShowContent<DirectGetters<O>>
commit: ShowContent<DirectMutations<O>>
dispatch: ShowContent<DirectActions<O>>
original: any // <-- here, replace 'VuexStore<O>' by 'any'
}> |
@paleo Thanks for the suggestion. That fixes the error. |
@paleo Do you think it's something you'll want to include and publish? |
I'll share my header.spec.ts file that tries to mock a getter and encounters
ts(2615)
onstore.original
:The Header component itself is fairly straightforward: main store is imported and an
isAuthenticated
computed property is defined that returns the value from the imported store.Is the above issue related to this package, or caused due to other packages/configuration in my project? Any help is appreciated.
The text was updated successfully, but these errors were encountered: