mirror of https://github.com/vuejs/core.git
chore(types): update examples in JSDoc for augmenting global properties and custom options to align with docs (#11609)
This commit is contained in:
parent
5cf5a1620d
commit
c96ec67c87
|
@ -91,7 +91,7 @@ import { markAsyncBoundary } from './helpers/useId'
|
|||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* declare module '@vue/runtime-core' {
|
||||
* declare module 'vue' {
|
||||
* interface ComponentCustomOptions {
|
||||
* beforeRouteUpdate?(
|
||||
* to: Route,
|
||||
|
|
|
@ -65,7 +65,7 @@ import type { Directive } from './directives'
|
|||
* import { createApp } from 'vue'
|
||||
* import { Router, createRouter } from 'vue-router'
|
||||
*
|
||||
* declare module '@vue/runtime-core' {
|
||||
* declare module 'vue' {
|
||||
* interface ComponentCustomProperties {
|
||||
* $router: Router
|
||||
* }
|
||||
|
|
Loading…
Reference in New Issue