Skip to content

Commit f42e400

Browse files
committed
chore(speedial): tsc errors fix
1 parent 9f716c9 commit f42e400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/speeddial/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { Animation, AnimationDefinition, CSSType, Color, CoreTypes, EventData, FlexboxLayout, GridLayout, ImageSource, isUserInteractionEnabledProperty } from '@nativescript/core';
77
import { Button } from '@nativescript-community/ui-material-button';
88
import { LinearGradient } from '@nativescript/core/ui/styling/linear-gradient';
9-
import { NotifyData } from '@nativescript/core/data/observable';
9+
import { Optional } from '@nativescript/core/utils/typescript-utils';
1010

1111
export class SpeedDialItemBase extends GridLayout {}
1212

@@ -139,7 +139,7 @@ export class SpeedDialItem extends SpeedDialItemBase {
139139
}
140140

141141
notifyChildEvent(child, superNotifyMethod) {
142-
return <T extends NotifyData>(data: T) => {
142+
return <T extends Optional<EventData, 'object'>>(data: T) => {
143143
(data as any).speeddialItem = this;
144144
if (data.eventName === 'tap') {
145145
if (this.isMain) {

0 commit comments

Comments
 (0)