Skip to content

Commit bd90746

Browse files
authored
docs: augment vue rather than @vue/runtime-core (#2257)
1 parent 7b024d8 commit bd90746

8 files changed

+8
-8
lines changed

docs/guide/migrating-to-4-0-from-3-x.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Place the following code in your project to allow `this.$store` to be typed corr
5858
import { ComponentCustomProperties } from 'vue'
5959
import { Store } from 'vuex'
6060

61-
declare module '@vue/runtime-core' {
61+
declare module 'vue' {
6262
// Declare your own store states.
6363
interface State {
6464
count: number

docs/guide/typescript-support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To do so, declare custom typings for Vue's `ComponentCustomProperties` by adding
1414
// vuex.d.ts
1515
import { Store } from 'vuex'
1616

17-
declare module '@vue/runtime-core' {
17+
declare module 'vue' {
1818
// declare your own store states
1919
interface State {
2020
count: number

docs/ja/guide/migrating-to-4-0-from-3-x.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Vuex 4 は、[issue #994](https://github.com/vuejs/vuex/issues/994) を解決す
5858
import { ComponentCustomProperties } from 'vue'
5959
import { Store } from 'vuex'
6060

61-
declare module '@vue/runtime-core' {
61+
declare module 'vue' {
6262
// ストアのステートを宣言する
6363
interface State {
6464
count: number

docs/ja/guide/typescript-support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Vuex はすぐに使用できる `this.$store` プロパティの型付けを提
1515
import { ComponentCustomProperties } from 'vue'
1616
import { Store } from 'vuex'
1717

18-
declare module '@vue/runtime-core' {
18+
declare module 'vue' {
1919
// ストアのステートを宣言する
2020
interface State {
2121
count: number

docs/ptbr/guide/migrating-to-4-0-from-3-x.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Coloque o seguinte código em seu projeto para permitir que `this.$store` seja t
5858
import { ComponentCustomProperties } from 'vue'
5959
import { Store } from 'vuex'
6060

61-
declare module '@vue/runtime-core' {
61+
declare module 'vue' {
6262
// Declare seus próprios estados do store
6363
interface State {
6464
count: number

docs/ptbr/guide/typescript-support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Para fazer isso, declare tipagens personalizadas para o `ComponentCustomProperti
1515
import { ComponentCustomProperties } from 'vue'
1616
import { Store } from 'vuex'
1717

18-
declare module '@vue/runtime-core' {
18+
declare module 'vue' {
1919
// declare seus próprios estados do store
2020
interface State {
2121
count: number

docs/zh/guide/migrating-to-4-0-from-3-x.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ app.mount('#app')
5858
import { ComponentCustomProperties } from 'vue'
5959
import { Store } from 'vuex'
6060

61-
declare module '@vue/runtime-core' {
61+
declare module 'vue' {
6262
// 声明自己的 store state
6363
interface State {
6464
count: number

docs/zh/guide/typescript-support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Vuex 没有为 `this.$store` 属性提供开箱即用的类型声明。如果你
1414
// vuex.d.ts
1515
import { Store } from 'vuex'
1616

17-
declare module '@vue/runtime-core' {
17+
declare module 'vue' {
1818
// 声明自己的 store state
1919
interface State {
2020
count: number

0 commit comments

Comments
 (0)