MCPcopy
hub / github.com/vuejs/core / warnRuntimeUsage

Function warnRuntimeUsage

packages/runtime-core/src/apiSetupHelpers.ts:39–44  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

37
38// dev only
39const warnRuntimeUsage = (method: string) =>
40 warn(
41 `${method}() is a compiler-hint helper that is only usable inside ` +
42 `<script setup> of a single file component. Its arguments should be ` +
43 `compiled away and passing it at runtime has no effect.`,
44 )
45
46/**
47 * Vue `<script setup>` compiler macro for declaring component props. The

Callers 7

definePropsFunction · 0.85
defineEmitsFunction · 0.85
defineExposeFunction · 0.85
defineOptionsFunction · 0.85
defineSlotsFunction · 0.85
defineModelFunction · 0.85
withDefaultsFunction · 0.85

Calls 1

warnFunction · 0.90

Tested by

no test coverage detected