Browse Source

docs: fix .js in comment (#1916)

The extension should be .ts instead of .js, since the file is in
TypeScript.
Peter Shih 4 years ago
parent
commit
8cc9dbdbcb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/guide/typescript-support.md

+ 1 - 1
docs/guide/typescript-support.md

@@ -96,7 +96,7 @@ Under the hood, Vuex installs the store to the Vue app using Vue's [Provide/Inje
 Having to import `InjectionKey` and passing it to `useStore` everywhere it's used can quickly become a repetitive task. To simplify matters, you can define your own composable function to retrieve a typed store:
 
 ```ts
-// store.js
+// store.ts
 import { InjectionKey } from 'vue'
 import { createStore, useStore as baseUseStore, Store } from 'vuex'