Skip to content

Commit 5e27ce4

Browse files
authored
Update typescript-support.md
Replace ```ts import { InjectionKey } from 'vue' ``` with ```ts import type { InjectionKey } from 'vue' ``` As the types should now be explicitly imported as type-only imports
1 parent a295412 commit 5e27ce4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/typescript-support.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Let's tackle this step by step. First, define the key using Vue's `InjectionKey`
3939

4040
```ts
4141
// store.ts
42-
import { InjectionKey } from 'vue'
42+
import type { InjectionKey } from 'vue'
4343
import { createStore, Store } from 'vuex'
4444

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

9797
```ts
9898
// store.ts
99-
import { InjectionKey } from 'vue'
99+
import type { InjectionKey } from 'vue'
100100
import { createStore, useStore as baseUseStore, Store } from 'vuex'
101101

102102
export interface State {

0 commit comments

Comments
 (0)