8000 feat(types): export ListView ItemEventData with `item` · iuriimattos2/nativescript-vue@3ba4941 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ba4941

Browse files
committed
feat(types): export ListView ItemEventData with item
1 parent aea8d3f commit 3ba4941

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.d.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// import vue.js typings
2-
// import Vue from 'vue';
3-
import { Vue, VueConstructor } from 'vue/types/vue'
41
import { Page, NavigationEntry } from 'tns-core-modules/ui/frame/frame'
2+
import { ItemEventData } from 'tns-core-modules/ui/list-view'
53
import { View } from 'tns-core-modules/ui/core/view'
4+
import { Vue, VueConstructor } from 'vue/types/vue'
5+
6+
// ListView ItemEventData with the addition of the item property
7+
export type NativeScriptVueItemEventData<T> = ItemEventData & { item: T }
68

79
export interface NavigationEntryVue extends NavigationEntry {
810
props?: Record<string, any>,

0 commit comments

Comments
 (0)
0