From f3b8cfb7e33e8ad095896e2ac61ccccd1cc0fe06 Mon Sep 17 00:00:00 2001 From: jseanxu Date: Wed, 9 Apr 2014 15:21:51 -0700 Subject: [PATCH] Fixed some typing in WinJS.Utilities. --- winjs/winjs.d.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/winjs/winjs.d.ts b/winjs/winjs.d.ts index 5a0cfdbbe..294de0815 100644 --- a/winjs/winjs.d.ts +++ b/winjs/winjs.d.ts @@ -8298,7 +8298,7 @@ declare module WinJS.Utilities { * @param func The function to be marked as compatible with declarative processing. * @returns The input function, marked as compatible with declarative processing. **/ - function markSupportedForProcessing(func: U): U; + function markSupportedForProcessing(func: U): U; /** * Returns a QueryCollection with zero or one elements matching the specified selector query. @@ -8329,7 +8329,7 @@ declare module WinJS.Utilities { * @param value The value to be tested for compatibility with declarative processing. If the value is a function it must be marked with a property supportedForProcessing with a value of true when strictProcessing is on. For more information, see WinJS.Utilities.markSupportedForProcessing. * @returns The input value. **/ - function requireSupportedForProcessing(value: any): any; + function requireSupportedForProcessing(value: T): T; /** * Sets the innerHTML property of the specified element to the specified text. @@ -8363,7 +8363,7 @@ declare module WinJS.Utilities { * Configures a logger that writes messages containing the specified tags to the JavaScript console. * @param options The tags for messages to log. Multiple tags should be separated by spaces. May contain type, tags, excludeTags and action properties. **/ - function startLog(options?: any): void; + function startLog(options?: ILogOptions): void; /** * Removes the WinJS logger that had previously been set up. @@ -8382,6 +8382,13 @@ declare module WinJS.Utilities { //#region Interfaces + interface ILogOptions { + type: string; + action?: (message: string, tags: string, type: string) => void; + excludeTags: string; + tags: string; + } + interface IPosition { left: number; top: number;