From 119c213c5e5ff63e3e80d8b2d3d286d7a6aa2797 Mon Sep 17 00:00:00 2001 From: kyo-ago Date: Thu, 3 Oct 2013 22:23:35 +0900 Subject: [PATCH] bug fix --- appframework/appframework-tests.ts | 4 ++-- appframework/appframework.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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