diff --git a/contribution-guides/vue-typescript.md b/contribution-guides/vue-typescript.md index 6987cad..541e8d6 100644 --- a/contribution-guides/vue-typescript.md +++ b/contribution-guides/vue-typescript.md @@ -80,6 +80,7 @@ The preferred order of a setup script in should be the following: ```typescript // 1. Imports import { get } from '@vueuse/core'; +import { defineExpose } from '@vue/runtime-core'; // 2. Definitions (defineX) defineOptions({ @@ -127,6 +128,11 @@ watch(title, (title) => { onMounted(() => { increaseCounter(); }); + +// 11. Exposed +defineExpose({ + increaseCounter, +}); ``` ### useCssModules