You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const open = (newContent: ContentType) => (content.value = newContent)
437
+
438
+
defineExpose({
439
+
open
440
+
})
441
+
</script>
442
+
```
443
+
444
+
It needs to be referenced using `ComponentExposed` from the [`vue-component-type-helpers`](https://www.npmjs.com/package/vue-component-type-helpers) library as `InstanceType` won't work.
445
+
446
+
```vue
447
+
<!-- App.vue -->
448
+
<script setup lang="ts">
449
+
import MyGenericModal from './MyGenericModal.vue'
450
+
451
+
import type { ComponentExposed } from 'vue-component-type-helpers';
0 commit comments