From: Raman Paulau Date: Wed, 14 Aug 2024 07:12:13 +0000 (-0700) Subject: chore(types): update examples in JSDoc for augmenting global properties and custom... X-Git-Tag: v3.5.0-beta.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c96ec67c875d5589a21e6cef12ef977f9ab66a4a;p=thirdparty%2Fvuejs%2Fcore.git chore(types): update examples in JSDoc for augmenting global properties and custom options to align with docs (#11609) --- diff --git a/packages/runtime-core/src/componentOptions.ts b/packages/runtime-core/src/componentOptions.ts index 07955f8410..c59b0428f4 100644 --- a/packages/runtime-core/src/componentOptions.ts +++ b/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, diff --git a/packages/runtime-core/src/componentPublicInstance.ts b/packages/runtime-core/src/componentPublicInstance.ts index 9857df1899..39935427f4 100644 --- a/packages/runtime-core/src/componentPublicInstance.ts +++ b/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 * }