mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 11:20:36 +01:00
chore(OverlayProvider): fix types
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useOverlay } from '../composables/useOverlay'
|
import { useOverlay, type Overlay } from '../composables/useOverlay'
|
||||||
|
|
||||||
const { overlays, unMount, close } = useOverlay()
|
const { overlays, unMount, close } = useOverlay()
|
||||||
|
|
||||||
const mountedOverlays = computed(() => overlays.filter(overlay => overlay.isMounted))
|
const mountedOverlays = computed(() => overlays.filter((overlay: Overlay) => overlay.isMounted))
|
||||||
|
|
||||||
const onAfterLeave = (id: symbol) => {
|
const onAfterLeave = (id: symbol) => {
|
||||||
close(id)
|
close(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user