diff --git a/appframework/appframework-tests.ts b/appframework/appframework-tests.ts index d86c73266..16cfe9802 100644 --- a/appframework/appframework-tests.ts +++ b/appframework/appframework-tests.ts @@ -1,6 +1,6 @@ /// -af(function ($: appFrameworkCollection) {}); +af(($: appFrameworkStatic) => {}); ((): appFrameworkCollection => { return $('div'); //=> all DIV elements on the page @@ -192,7 +192,7 @@ $.feat.cssTransformEnd; ((): appFrameworkCollection => { - return $('').reduce(() => {}); + return $('').reduce((hoge) => { return hoge; }); })(); ((): number => { diff --git a/appframework/appframework.d.ts b/appframework/appframework.d.ts index c7cd4b207..66cc32e1b 100644 --- a/appframework/appframework.d.ts +++ b/appframework/appframework.d.ts @@ -53,8 +53,8 @@ interface appFrameworkStatic { * @return {Array} elements * @title $.each(elements,callback) */ - each(collection: any[], fn: (index: number, item: any) => boolean): void; - each(collection: any, fn: (key: string, value: any) => boolean): void; + each(collection: any[], fn: (index: number, item: any) => any): void; + each(collection: any, fn: (key: string, value: any) => any): void; /** * Extends an object with additional arguments