From 0a7bf0d88949070926e19495e76806f8902f5318 Mon Sep 17 00:00:00 2001 From: jseanxu Date: Wed, 9 Apr 2014 15:12:08 -0700 Subject: [PATCH] The second parameter for show/hideCommands for AppBar can be optional, especially since it is deprecated, it is actually encouraged to not specify it. --- winjs/winjs.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winjs/winjs.d.ts b/winjs/winjs.d.ts index aa0b5b0be..daa071fb3 100644 --- a/winjs/winjs.d.ts +++ b/winjs/winjs.d.ts @@ -3562,7 +3562,7 @@ declare module WinJS.UI { * @param commands The commands to hide. The array elements may be AppBarCommand objects, or the string identifiers (IDs) of commands. * @param immediate The parameter immediate is not supported and may be altered or unavailable in the future. true to hide the commands immediately, without animating them; otherwise, false. **/ - hideCommands(commands: any[], immediate: boolean): void; + hideCommands(commands: any[], immediate?: boolean): void; /** * Removes an event handler that the addEventListener method registered. @@ -3582,14 +3582,14 @@ declare module WinJS.UI { * @param commands The commands to show. The array elements may be AppBarCommand objects, or the string identifiers (IDs) of commands. * @param immediate The parameter immediate is not supported and may be altered or unavailable in the future. true to show the commands immediately, without animating them; otherwise, false. **/ - showCommands(commands: any[], immediate: boolean): void; + showCommands(commands: any[], immediate?: boolean): void; /** * Shows the specified commands of the AppBar while hiding all other commands. * @param commands The commands to show. The array elements may be AppBarCommand objects, or the string identifiers (IDs) of commands. * @param immediate The parameter immediate is not supported and may be altered or unavailable in the future. true to show the specified commands (and hide the others) immediately, without animating them; otherwise, false. **/ - showOnlyCommands(commands: any[], immediate: boolean): void; + showOnlyCommands(commands: any[], immediate?: boolean): void; //#endregion Methods