File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 11import { App , createApp } from 'nativescript-vue3' ;
22import { Frame , View , ViewBase } from '@nativescript/core' ;
33import { BottomSheetOptions } from '../bottomsheet' ;
4+ import { ComponentCustomProperties } from '@vue/runtime-core' ;
5+
6+ declare module '@vue/runtime-core' {
7+ interface ComponentCustomProperties {
8+ $showBottomSheet : ( component : any , options : VueBottomSheetOptions ) => Promise < any > ;
9+ $closeBottomSheet ( ...args ) ;
10+ }
11+ }
412
513const modalStack = [ ] ;
614
@@ -63,12 +71,6 @@ const BottomSheetPlugin = {
6371
6472const createNativeView = ( component : any , props ?: any ) : App => createApp ( component , props ) ;
6573
66- declare module '@vue/runtime-core' {
67- interface ComponentCustomProperties {
68- $showBottomSheet : ( component : any , options : VueBottomSheetOptions ) => Promise < any > ;
69- $closeBottomSheet ( ...args ) ;
70- }
71- }
7274
7375interface VueBottomSheetOptions extends Partial < BottomSheetOptions > {
7476 view ?: string | ViewBase ;
You can’t perform that action at this time.
0 commit comments