Skip to content

Commit 1d8054b

Browse files
committed
chore: typings fix
1 parent a014469 commit 1d8054b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/speeddial/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
import { Button } from '@nativescript-community/ui-material-button';
1818
import { LinearGradient } from '@nativescript/core/ui/styling/gradient';
1919
import { AnimationCurve } from '@nativescript/core/ui/enums';
20+
import { NotifyData } from '@nativescript/core/data/observable';
2021

2122
export class SpeedDialItemBase extends GridLayout {}
2223

@@ -133,11 +134,11 @@ export class SpeedDialItem extends SpeedDialItemBase {
133134
}
134135

135136
notifyChildEvent(child, superNotifyMethod) {
136-
return (event: EventData) => {
137-
(event as any).speeddialItem = this;
138-
if (event.eventName === 'tap') {
137+
return <T extends NotifyData>(data: T) => {
138+
(data as any).speeddialItem = this;
139+
if (data.eventName === 'tap') {
139140
if (this.isMain) {
140-
this.fabmenu.get().onButtonTap(event);
141+
this.fabmenu.get().onButtonTap(data);
141142
} else {
142143
this.fabmenu.get().active = false;
143144
}

0 commit comments

Comments
 (0)