chore(types): update examples in JSDoc for augmenting global properties and custom options to align with docs (#11609)

This commit is contained in:
Raman Paulau 2024-08-14 00:12:13 -07:00 committed by GitHub
parent 5cf5a1620d
commit c96ec67c87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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
* } * }