From f99cbec760506bb8b879a4554aaa899bab695a77 Mon Sep 17 00:00:00 2001 From: Theodore Brown Date: Tue, 18 Jun 2013 17:02:03 -0500 Subject: [PATCH] testStyles callback should return void instead of boolean Fixes failing tests --- modernizr/modernizr.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modernizr/modernizr.d.ts b/modernizr/modernizr.d.ts index c7d5619a4..d28011dac 100644 --- a/modernizr/modernizr.d.ts +++ b/modernizr/modernizr.d.ts @@ -105,7 +105,7 @@ interface ModernizrStatic { addTest(feature: string, test: boolean); addTest(feature: any); - testStyles(rule: string, callback: (element, rule) => boolean, nodes?: number, testnames?: string[]): boolean; + testStyles(rule: string, callback: (element, rule) => void, nodes?: number, testnames?: string[]): boolean; testProp(property: string): boolean; testAllProps(property: string, prefix?: string): boolean; testAllProps(property: string, obj: any, element: any): boolean;