UNPKG

1.17 kBTypeScriptView Raw
1/**
2 * The types of Office add-ins.
3 */
4export declare enum AddInType {
5 Content = "content",
6 Mail = "mail",
7 TaskPane = "taskpane"
8}
9/**
10 * Get the Office app for the manifest Host name
11 * @param host Host name
12 */
13export declare function getAddInTypeForManifestOfficeAppType(officeAppType: string): AddInType | undefined;
14/**
15 * Returns the Office add-in types.
16 */
17export declare function getAddInTypes(): AddInType[];
18/**
19 * Converts the string to the AddInType enum value.
20 * @param value string
21 * @throws Error if the value is not a valid Office add-in type.
22 */
23export declare function parseAddInType(value: string): AddInType;
24/**
25 * Converts the strings to the AddInType enum values.
26 * @param input "all" for all Office add-in types, or a comma-separated list of one or more Office apps.
27 * @throws Error if a value is not a valid Office app.
28 */
29export declare function parseAddInTypes(input: string): AddInType[];
30/**
31 * Returns the AddInType enum for the value, or undefined if not valid.
32 * @param value Office add-in type string
33 */
34export declare function toAddInType(value: string): AddInType | undefined;