Merge pull request #30050 from sebastianmattar/master

Fixed callback datatypes for Office.Body.getAsync() and Office.Appoint…
This commit is contained in:
Daniel Rosenwasser
2018-10-31 18:04:37 -07:00
committed by GitHub
+6 -6
View File
@@ -8648,7 +8648,7 @@ declare namespace Office {
*
* In addition to this signature, this method also has the following signature:
*
* `getAsync(coerciontype: Office.CoercionType, callback: (result: AsyncResult<Office.Body>) => void): void;`
* `getAsync(coerciontype: Office.CoercionType, callback: (result: AsyncResult<string>) => void): void;`
*
* @param coercionType The format for the returned body.
* @param options Optional. An object literal that contains one or more of the following properties:
@@ -8656,7 +8656,7 @@ declare namespace Office {
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type AsyncResult.
* The body is provided in the requested format in the asyncResult.value property.
*/
getAsync(coerciontype: Office.CoercionType, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<Office.Body>) => void): void;
getAsync(coerciontype: Office.CoercionType, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<string>) => void): void;
/**
* Returns the current body in a specified format.
*
@@ -8677,7 +8677,7 @@ declare namespace Office {
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult.
* The body is provided in the requested format in the asyncResult.value property.
*/
getAsync(coerciontype: Office.CoercionType, callback: (result: AsyncResult<Office.Body>) => void): void;
getAsync(coerciontype: Office.CoercionType, callback: (result: AsyncResult<string>) => void): void;
/**
* Gets a value that indicates whether the content is in HTML or text format.
@@ -10403,13 +10403,13 @@ declare namespace Office {
*
* `saveAsync(options: Office.AsyncContextOptions): void;`
*
* `saveAsync(callback: (result: AsyncResult<void>) => void): void;`
* `saveAsync(callback: (result: AsyncResult<string>) => void): void;`
*
* @param options Optional. An object literal that contains one or more of the following properties.
* asyncContext: Developers can provide any object they wish to access in the callback method.
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult.
*/
saveAsync(options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<void>) => void): void;
saveAsync(options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<string>) => void): void;
/**
* Asynchronously saves an item.
*
@@ -10510,7 +10510,7 @@ declare namespace Office {
*
* @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult.
*/
saveAsync(callback: (result: AsyncResult<void>) => void): void;
saveAsync(callback: (result: AsyncResult<string>) => void): void;
/**
* Asynchronously inserts data into the body or subject of a message.
*