From d2a6fbd6a1b40c256aa789b698c7f4ba39477f8c Mon Sep 17 00:00:00 2001 From: Tass Iliopoulos Date: Wed, 13 Feb 2013 14:55:45 +1100 Subject: [PATCH 1/2] .prop(propertyName) returns a string --- jquery/jquery.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index 6e78b9913..b9775576e 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -378,7 +378,7 @@ interface JQuery { html(htmlString: string): JQuery; html(htmlContent: (index: number, oldhtml: string) => string): JQuery; - prop(propertyName: string): any; + prop(propertyName: string): string; prop(propertyName: string, value: any): JQuery; prop(map: any): JQuery; prop(propertyName: string, func: (index: any, oldPropertyValue: any) => any): JQuery; From 39dce4b277be8cbbefaabd3f24488f87f64ddf05 Mon Sep 17 00:00:00 2001 From: Tass Iliopoulos Date: Wed, 13 Feb 2013 14:56:58 +1100 Subject: [PATCH 2/2] Added specific returns to .css --- jquery/jquery.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jquery/jquery.d.ts b/jquery/jquery.d.ts index b9775576e..f3e362991 100644 --- a/jquery/jquery.d.ts +++ b/jquery/jquery.d.ts @@ -403,11 +403,11 @@ interface JQuery { /*** CSS ****/ - css(propertyName: string): any; - css(propertyNames: string[]): any; - css(properties: any): any; - css(propertyName: string, value: any): any; - css(propertyName: any, value: any): any; + css(propertyName: string): string; + css(propertyNames: string[]): string; + css(properties: any): JQuery; + css(propertyName: string, value: any): JQuery; + css(propertyName: any, value: any): JQuery; height(): number; height(value: number): JQuery;