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

docs: augment vue rather than @vue/runtime-core #2257

Merged
merged 1 commit into from
Sep 25, 2024
Merged
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
docs: augment vue rather than @vue/runtime-core
danielroe committed Sep 25, 2024
commit 83e161e13f1d19f22bda6d511ccdc63fd4b2bf5e
2 changes: 1 addition & 1 deletion docs/guide/migrating-to-4-0-from-3-x.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/guide/typescript-support.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/ja/guide/migrating-to-4-0-from-3-x.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/ja/guide/typescript-support.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/ptbr/guide/migrating-to-4-0-from-3-x.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/ptbr/guide/typescript-support.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/zh/guide/migrating-to-4-0-from-3-x.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/zh/guide/typescript-support.md
Original file line number Diff line number Diff line change
@@ -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