From 39e29fccf1840c723a13237d65002501b2829b70 Mon Sep 17 00:00:00 2001 From: Eugen Istoc Date: Tue, 29 Apr 2025 12:09:39 -0400 Subject: [PATCH] fix(useOverlay): improve types and docs (#4012) Co-authored-by: Benjamin Canac --- docs/content/1.getting-started/2.migration.md | 6 ++++-- docs/content/2.composables/use-overlay.md | 14 ++++++++------ src/runtime/composables/useOverlay.ts | 17 +++++++++-------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/docs/content/1.getting-started/2.migration.md b/docs/content/1.getting-started/2.migration.md index b4faa1b6..a2eb08d9 100644 --- a/docs/content/1.getting-started/2.migration.md +++ b/docs/content/1.getting-started/2.migration.md @@ -504,7 +504,7 @@ const count = ref(0) ``` -Closing a modal is now done through the `close` event. The `modal.open` method now returns a promise that resolves to the result of the modal whenever the modal is close: +Closing a modal is now done through the `close` event. The `modal.open` method now returns an instance that can be used to await for the result of the modal whenever the modal is closed: ```diff