Skip to content

Commit a9fb4cb

Browse files
committed
chore: tsc fix
1 parent a2b9b2e commit a9fb4cb

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/bottomsheet/vue3/index.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import { App, createApp } from 'nativescript-vue3';
22
import { Frame, View, ViewBase } from '@nativescript/core';
33
import { 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

513
const modalStack = [];
614

@@ -63,12 +71,6 @@ const BottomSheetPlugin = {
6371

6472
const 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

7375
interface VueBottomSheetOptions extends Partial<BottomSheetOptions> {
7476
view?: string | ViewBase;

0 commit comments

Comments
 (0)