From 8b97c36adca0c10dad5894310dc4756cd737f3c3 Mon Sep 17 00:00:00 2001 From: falsandtru Date: Sat, 7 Feb 2015 19:17:21 +0900 Subject: [PATCH] Fix jquery type definitions --- jquery/jquery.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 52f09f8da..4b95171ca 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -2587,7 +2587,7 @@ interface JQuery { * * param func A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. */ - after(func: (index: number) => string|Element|JQuery): JQuery; + after(func: (index: number, html: string) => string|Element|JQuery): JQuery; /** * Insert content, specified by the parameter, to the end of each element in the set of matched elements. @@ -2622,7 +2622,7 @@ interface JQuery { * * param func A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. */ - before(func: (index: number) => string|Element|JQuery): JQuery; + before(func: (index: number, html: string) => string|Element|JQuery): JQuery; /** * Create a deep copy of the set of matched elements.