File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/vue-final-modal/src Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import VueFinalModal from './components/VueFinalModal/VueFinalModal.vue'
4
4
import ModalFullscreen from './components/ModalFullscreen/ModalFullscreen.vue'
5
5
import ModalBottom from './components/ModalBottom/ModalBottom.vue'
6
6
7
+ import type { Vfm } from './Modal'
8
+
7
9
/** Types */
8
10
export * from './Modal'
9
11
@@ -30,3 +32,15 @@ export type { ModalBottomEmits } from './components/ModalBottom/ModalBottom.vue'
30
32
31
33
/** Composables */
32
34
export { useVfm , useModal , useVfmAttrs } from './useApi'
35
+
36
+ declare module '@vue/runtime-core' {
37
+ export interface ComponentCustomProperties {
38
+ /**
39
+ * Vue Final Modal global state for the modal components and also provides
40
+ * functions that can be used to control the modal components. @see {Vfm}
41
+ */
42
+ $vfm : Vfm
43
+ }
44
+ }
45
+
46
+ export { }
You can’t perform that action at this time.
0 commit comments