Skip to content

Commit 4389228

Browse files
championswimmerrigor789
authored andcommitted
fix: provide explicit type to data (nativescript-vue#305)
otherwise Typescrpit will complain in strict mode
1 parent a6bf850 commit 4389228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface NativeScriptVue<V = View> extends Vue {
2222
$navigateTo: navigateTo
2323
$navigateBack: () => void
2424

25-
$modal?: { close: (data?) => Promise<typeof data> };
25+
$modal?: { close: (data?: any) => Promise<typeof data> };
2626

2727
/**
2828
* Open a modal using a component

0 commit comments

Comments
 (0)