8000 types(modals): update ModalOptions typings (#623) · designemail/nativescript-vue@307658d · GitHub
[go: up one dir, main page]

Skip to content

Commit 307658d

Browse files
authored
types(modals): update ModalOptions typings (nativescript-vue#623)
* fix: showmodal options typings # Conflicts: # index.d.ts * fix: typings * fix: added target option
1 parent e37788c commit 307658d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Page, NavigationEntry } from 'tns-core-modules/ui/frame/frame'
22
import { ItemEventData } from 'tns-core-modules/ui/list-view'
33
import { View } from 'tns-core-modules/ui/core/view'
4+
import { ShowModalOptions } from 'tns-core-modules/ui/core/view-base'
45
import { Vue, VueConstructor } from 'vue/types/vue'
56

67
// ListView ItemEventData with the addition of the item property
@@ -17,9 +18,8 @@ export type navigateTo = (
1718
cb?: () => Page,
1819
) => Promise<Page>;
1920

20-
export interface ModalOptions {
21-
context?: any;
22-
fullscreen?: boolean;
21+
export interface ModalOptions extends Partial<ShowModalOptions> {
22+
target?: any; // optional Vue target to open the modal from
2323
props?: Record<string, any>;
2424
}
2525

0 commit comments

Comments
 (0)
0