So im trying to upgrade to typescript 0.9.5 in our project, but im currently stuck.
This is the error im reciving from the compiler:
error TS2082: Supplied parameters do not match any signature of call target:
Call signatures of types '(event: JQueryEventObject, component: any,
mouseClickPagePosition: any) => void' and
'(eventObject: JQueryEventObject, ...args: any[]) => any' are incompatible:
Call signature expects 1 or fewer parameters.
It seems like this code:
jQuery('selector').on('event',
(event, component, mouseClickPagePosition) => {
// code
});
cannot be used with this jQuery definition:
on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
But the method signatures seems to add up?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…