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

Function defineExpose

packages/runtime-core/src/apiSetupHelpers.ts:181–187  ·  view source on GitHub ↗
(exposed?: Exposed)

Source from the content-addressed store, hash-verified

179 * @see {@link https://vuejs.org/api/sfc-script-setup.html#defineexpose}
180 */
181export function defineExpose<
182 Exposed extends Record<string, any> = Record<string, any>,
183>(exposed?: Exposed): void {
184 if (__DEV__) {
185 warnRuntimeUsage(`defineExpose`)
186 }
187}
188
189/**
190 * Vue `<script setup>` compiler macro for declaring a component's additional

Callers 1

Calls 1

warnRuntimeUsageFunction · 0.85

Tested by

no test coverage detected