• Vue <script setup> compiler macro for declaring a component's exposed instance properties when it is accessed by a parent component via template refs.

    <script setup> components are closed by default - i.e. variables inside the <script setup> scope is not exposed to parent unless explicitly exposed via defineExpose.

    This is only usable inside <script setup>, is compiled away in the output and should not be actually called at runtime.

    Type Parameters

    • Exposed extends Record<string, any> = Record<string, any>

    Parameters

    Returns void