所以我试图在我们的项目中升级到typescript 0.9.5,但我目前卡住了.
这是从编译器中恢复的错误:
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.
好像这段代码:
jQuery('selector').on('event',(event,component,mouseClickPagePosition) => { // code });
不能与此jQuery定义一起使用:
on(events: string,handler: (eventObject: JQueryEventObject,...args: any[]) => any): JQuery;
但方法签名似乎加起来了?