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
|
* @example
|
||||||
* ```ts
|
* ```ts
|
||||||
* declare module '@vue/runtime-core' {
|
* declare module 'vue' {
|
||||||
* interface ComponentCustomOptions {
|
* interface ComponentCustomOptions {
|
||||||
* beforeRouteUpdate?(
|
* beforeRouteUpdate?(
|
||||||
* to: Route,
|
* to: Route,
|
||||||
|
|
|
@ -65,7 +65,7 @@ import type { Directive } from './directives'
|
||||||
* import { createApp } from 'vue'
|
* import { createApp } from 'vue'
|
||||||
* import { Router, createRouter } from 'vue-router'
|
* import { Router, createRouter } from 'vue-router'
|
||||||
*
|
*
|
||||||
* declare module '@vue/runtime-core' {
|
* declare module 'vue' {
|
||||||
* interface ComponentCustomProperties {
|
* interface ComponentCustomProperties {
|
||||||
* $router: Router
|
* $router: Router
|
||||||
* }
|
* }
|
||||||
|
|
Loading…
Reference in New Issue