MCPcopy
hub / github.com/nuxt/nuxt / warnRuntimeUsage

Function warnRuntimeUsage

packages/nuxt/src/pages/runtime/composables.ts:68–74  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

66}
67
68const warnRuntimeUsage = (method: string) => {
69 console.warn(
70 `${method}() is a compiler-hint helper that is only usable inside ` +
71 'the script block of a single file component which is also a page. Its arguments should be ' +
72 'compiled away and passing it at runtime has no effect.',
73 )
74}
75
76// eslint-disable-next-line @typescript-eslint/no-unused-vars
77export const definePageMeta = (meta: PageMeta): void => {

Callers 1

definePageMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…