From c5d12b955f22471a17946d6f7115ff158d264b87 Mon Sep 17 00:00:00 2001 From: kevin olson Date: Fri, 11 Nov 2022 11:42:02 -0600 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=92=AC=20a=20bit=20more=20detail=20on?= =?UTF-8?q?=20this=20warning=20to=20specify=20it=20needs=20to=20be=20in=20?= =?UTF-8?q?a=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/nuxt/src/pages/runtime/composables.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nuxt/src/pages/runtime/composables.ts b/packages/nuxt/src/pages/runtime/composables.ts index 740fb991f5e..a2892af8b58 100644 --- a/packages/nuxt/src/pages/runtime/composables.ts +++ b/packages/nuxt/src/pages/runtime/composables.ts @@ -38,14 +38,14 @@ export interface PageMeta { } declare module 'vue-router' { - interface RouteMeta extends UnwrapRef {} + interface RouteMeta extends UnwrapRef { } } const warnRuntimeUsage = (method: string) => console.warn( `${method}() is a compiler-hint helper that is only usable inside ` + - 'the script block of a single file component. Its arguments should be ' + - 'compiled away and passing it at runtime has no effect.' + 'the script block of a single file component which is also a page. Its arguments should be ' + + 'compiled away and passing it at runtime has no effect.' ) // eslint-disable-next-line @typescript-eslint/no-unused-vars From 7e36ff220a33dfb532a796cd23e6fc9eadbbd5f4 Mon Sep 17 00:00:00 2001 From: kevin olson Date: Fri, 11 Nov 2022 11:44:48 -0600 Subject: [PATCH 2/2] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20remove=20space=20added?= =?UTF-8?q?=20by=20my=20linter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/nuxt/src/pages/runtime/composables.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/pages/runtime/composables.ts b/packages/nuxt/src/pages/runtime/composables.ts index a2892af8b58..71cead02fbc 100644 --- a/packages/nuxt/src/pages/runtime/composables.ts +++ b/packages/nuxt/src/pages/runtime/composables.ts @@ -38,7 +38,7 @@ export interface PageMeta { } declare module 'vue-router' { - interface RouteMeta extends UnwrapRef { } + interface RouteMeta extends UnwrapRef {} } const warnRuntimeUsage = (method: string) =>