mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
[Office-js] Changing OWAView to an enum (#27624)
* Removing quotes from string * Adding enum
This commit is contained in:
Vendored
+19
-2
@@ -5730,6 +5730,23 @@ declare namespace Office {
|
||||
*/
|
||||
Dec = "dec"
|
||||
}
|
||||
/**
|
||||
* Represents the current view of Outlook Web App.
|
||||
*/
|
||||
enum OWAView {
|
||||
/**
|
||||
* One column view. Displayed when the screen is narrow. Outlook Web App uses this single-column layout on the entire screen of a smartphone.
|
||||
*/
|
||||
OneColumn = "OneColumn",
|
||||
/**
|
||||
* Two column view. Displayed when the screen is wider. Outlook Web App uses this view on most tablets.
|
||||
*/
|
||||
TwoColumns = "TwoColumns",
|
||||
/**
|
||||
Three column view. Displayed when the screen is wide. For example, Outlook Web App uses this view in a full screen window on a desktop computer.
|
||||
*/
|
||||
ThreeColumns = "ThreeColumns"
|
||||
}
|
||||
/**
|
||||
* Specifies the type of recipient for an appointment.
|
||||
*
|
||||
@@ -7165,7 +7182,7 @@ declare namespace Office {
|
||||
*
|
||||
* <tr><td>{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}</td><td>Compose or read</td></tr></table>
|
||||
*/
|
||||
OWAView: "string";
|
||||
OWAView: MailboxEnums.OWAView | "OneColumn" | "TwoColumns" | "ThreeColumns";
|
||||
}
|
||||
/**
|
||||
* Provides the email properties of the sender or specified recipients of an email message or appointment.
|
||||
@@ -11898,7 +11915,7 @@ declare namespace Office {
|
||||
*
|
||||
* - hostVersion (string): A string that represents the version of either the host application or the Exchange Server. If the mail add-in is running on the Outlook desktop client or Outlook for iOS, the hostVersion property returns the version of the host application, Outlook. In Outlook Web App, the property returns the version of the Exchange Server. An example is the string 15.0.468.0.
|
||||
*
|
||||
* - OWAView (string): A string that represents the current view of Outlook Web App. If the host application is not Outlook Web App, then accessing this property results in undefined. Outlook Web App has three views (OneColumn - displayed when the screen is narrow, TwoColumns - displayed when the screen is wider, and ThreeColumns - displayed when the screen is wide.) that correspond to the width of the screen and the window, and the number of columns that can be displayed.
|
||||
* - OWAView (MailboxEnums.OWAView or string): An enum (or string literal) that represents the current view of Outlook Web App. If the host application is not Outlook Web App, then accessing this property results in undefined. Outlook Web App has three views (OneColumn - displayed when the screen is narrow, TwoColumns - displayed when the screen is wider, and ThreeColumns - displayed when the screen is wide) that correspond to the width of the screen and the window, and the number of columns that can be displayed.
|
||||
*
|
||||
* More information is under {@link Office.Diagnostics}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user