Browse Source

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

Raman Paulau 1 year ago
parent
commit
c96ec67c87

+ 1 - 1
packages/runtime-core/src/componentOptions.ts

@@ -91,7 +91,7 @@ import { markAsyncBoundary } from './helpers/useId'
  *
  * @example
  * ```ts
- * declare module '@vue/runtime-core' {
+ * declare module 'vue' {
  *   interface ComponentCustomOptions {
  *     beforeRouteUpdate?(
  *       to: Route,

+ 1 - 1
packages/runtime-core/src/componentPublicInstance.ts

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