From c4cfea06a6f3a391da7bdc91309bb649733e9fa8 Mon Sep 17 00:00:00 2001 From: jseanxu Date: Wed, 9 Apr 2014 15:13:47 -0700 Subject: [PATCH] The 'commands' property of both AppBar and Menu can take both a single command or an array of commands. Since there is no syntax to type this duality, we should indicate an array of commands instead. --- winjs/winjs.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winjs/winjs.d.ts b/winjs/winjs.d.ts index daa071fb33..a27a5350e6 100644 --- a/winjs/winjs.d.ts +++ b/winjs/winjs.d.ts @@ -3598,7 +3598,7 @@ declare module WinJS.UI { /** * Sets the AppBarCommand objects that appear in the app bar. **/ - commands: AppBarCommand; + commands: AppBarCommand[]; /** * Gets or sets a value that indicates whether the AppBar is disabled. @@ -5598,7 +5598,7 @@ declare module WinJS.UI { /** * Sets the MenuCommand objects that appear in the menu. **/ - commands: MenuCommand; + commands: MenuCommand[]; /** * Gets the DOM element that hosts the Menu.