Skip to content

Commit 1884540

Browse files
committed
add ItemTemplate event types
1 parent bec0768 commit 1884540

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Style } from "@nativescript/core";
1+
import { Style, ViewBase } from "@nativescript/core";
22
import {
33
Document,
44
DOMEvent,
@@ -41,7 +41,12 @@ export type MapNativeViewEvents<T, C> = {
4141
};
4242

4343
export type MapPseudoElementEvents<T, C> = {
44-
[K in T as `on:${K}`]: (event: any) => void;
44+
[K in T as `on:${K}`]: (event: {
45+
view?: ViewBase;
46+
index?: number;
47+
item?: any;
48+
data?: any
49+
}) => void;
4550
};
4651

4752
type NSComponentEventsMap = {

0 commit comments

Comments
 (0)