Fixed callback datatype for Office.Body.getAsync() and Office.AppointmentCompose.saveAsync()

This commit is contained in:
Sebastian Mattar
2018-10-31 08:38:47 +01:00
parent 33937378a6
commit 7b44fb0570
+6 -6
View File
@@ -8562,7 +8562,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:
@@ -8570,7 +8570,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.
*
@@ -8591,7 +8591,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.
@@ -10147,13 +10147,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.
*
@@ -10254,7 +10254,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.
*