From 7b024d8bc7ed8e273b8bd853b1e23ec78ab1b045 Mon Sep 17 00:00:00 2001 From: heygsc <103993866+heygsc@users.noreply.github.com> Date: Tue, 8 Aug 2023 19:38:57 +0800 Subject: [PATCH 1/2] docs: correct branch ref for edit links (#2229) --- docs/.vitepress/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 9f7824ae9..e5f9f9432 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -36,7 +36,7 @@ module.exports = { themeConfig: { repo: 'vuejs/vuex', docsDir: 'docs', - docsBranch: '4.0', + docsBranch: 'main', editLinks: true, From bd907467b8392d6671bb115738285ff7f63d0cf6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 25 Sep 2024 14:26:40 +0100 Subject: [PATCH 2/2] docs: augment `vue` rather than `@vue/runtime-core` (#2257) --- docs/guide/migrating-to-4-0-from-3-x.md | 2 +- docs/guide/typescript-support.md | 2 +- docs/ja/guide/migrating-to-4-0-from-3-x.md | 2 +- docs/ja/guide/typescript-support.md | 2 +- docs/ptbr/guide/migrating-to-4-0-from-3-x.md | 2 +- docs/ptbr/guide/typescript-support.md | 2 +- docs/zh/guide/migrating-to-4-0-from-3-x.md | 2 +- docs/zh/guide/typescript-support.md | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/guide/migrating-to-4-0-from-3-x.md b/docs/guide/migrating-to-4-0-from-3-x.md index 891ee9d58..3cda020e1 100644 --- a/docs/guide/migrating-to-4-0-from-3-x.md +++ b/docs/guide/migrating-to-4-0-from-3-x.md @@ -58,7 +58,7 @@ Place the following code in your project to allow `this.$store` to be typed corr import { ComponentCustomProperties } from 'vue' import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // Declare your own store states. interface State { count: number diff --git a/docs/guide/typescript-support.md b/docs/guide/typescript-support.md index 9f86dbdc9..4be88f238 100644 --- a/docs/guide/typescript-support.md +++ b/docs/guide/typescript-support.md @@ -14,7 +14,7 @@ To do so, declare custom typings for Vue's `ComponentCustomProperties` by adding // vuex.d.ts import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // declare your own store states interface State { count: number diff --git a/docs/ja/guide/migrating-to-4-0-from-3-x.md b/docs/ja/guide/migrating-to-4-0-from-3-x.md index 3733b7e03..713bbde26 100644 --- a/docs/ja/guide/migrating-to-4-0-from-3-x.md +++ b/docs/ja/guide/migrating-to-4-0-from-3-x.md @@ -58,7 +58,7 @@ Vuex 4 は、[issue #994](https://github.com/vuejs/vuex/issues/994) を解決す import { ComponentCustomProperties } from 'vue' import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // ストアのステートを宣言する interface State { count: number diff --git a/docs/ja/guide/typescript-support.md b/docs/ja/guide/typescript-support.md index 08a52cdb5..fffcb6b30 100644 --- a/docs/ja/guide/typescript-support.md +++ b/docs/ja/guide/typescript-support.md @@ -15,7 +15,7 @@ Vuex はすぐに使用できる `this.$store` プロパティの型付けを提 import { ComponentCustomProperties } from 'vue' import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // ストアのステートを宣言する interface State { count: number diff --git a/docs/ptbr/guide/migrating-to-4-0-from-3-x.md b/docs/ptbr/guide/migrating-to-4-0-from-3-x.md index bfeab5e80..c9f4c2a98 100644 --- a/docs/ptbr/guide/migrating-to-4-0-from-3-x.md +++ b/docs/ptbr/guide/migrating-to-4-0-from-3-x.md @@ -58,7 +58,7 @@ Coloque o seguinte código em seu projeto para permitir que `this.$store` seja t import { ComponentCustomProperties } from 'vue' import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // Declare seus próprios estados do store interface State { count: number diff --git a/docs/ptbr/guide/typescript-support.md b/docs/ptbr/guide/typescript-support.md index 6fae7fd59..dc7524038 100644 --- a/docs/ptbr/guide/typescript-support.md +++ b/docs/ptbr/guide/typescript-support.md @@ -15,7 +15,7 @@ Para fazer isso, declare tipagens personalizadas para o `ComponentCustomProperti import { ComponentCustomProperties } from 'vue' import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // declare seus próprios estados do store interface State { count: number diff --git a/docs/zh/guide/migrating-to-4-0-from-3-x.md b/docs/zh/guide/migrating-to-4-0-from-3-x.md index 774eb8eae..ee9542707 100644 --- a/docs/zh/guide/migrating-to-4-0-from-3-x.md +++ b/docs/zh/guide/migrating-to-4-0-from-3-x.md @@ -58,7 +58,7 @@ app.mount('#app') import { ComponentCustomProperties } from 'vue' import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // 声明自己的 store state interface State { count: number diff --git a/docs/zh/guide/typescript-support.md b/docs/zh/guide/typescript-support.md index 70c3967c6..87a41c8a9 100644 --- a/docs/zh/guide/typescript-support.md +++ b/docs/zh/guide/typescript-support.md @@ -14,7 +14,7 @@ Vuex 没有为 `this.$store` 属性提供开箱即用的类型声明。如果你 // vuex.d.ts import { Store } from 'vuex' -declare module '@vue/runtime-core' { +declare module 'vue' { // 声明自己的 store state interface State { count: number