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

Update typescript-support.md #2215

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guide/typescript-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Let's tackle this step by step. First, define the key using Vue's `InjectionKey`

```ts
// store.ts
import { InjectionKey } from 'vue'
import type { InjectionKey } from 'vue'
import { createStore, Store } from 'vuex'

// define your typings for the store state
Expand Down Expand Up @@ -96,7 +96,7 @@ Having to import `InjectionKey` and passing it to `useStore` everywhere it's use

```ts
// store.ts
import { InjectionKey } from 'vue'
import type { InjectionKey } from 'vue'
import { createStore, useStore as baseUseStore, Store } from 'vuex'

export interface State {
Expand Down