Our office-js d.ts file has many instances of overloaded functions. For example, AppointmentCompose contains
addFileAttachmentAsync(uri: string, attachmentName: string): void;
addFileAttachmentAsync(uri: string, attachmentName: string, options: Office.AsyncContextOptions): void;
addFileAttachmentAsync(uri: string, attachmentName: string, callback: (result: AsyncResult<string>) => void): void;
addFileAttachmentAsync(uri: string, attachmentName: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<string>) => void): void;
Currently, only one overload (the sequentially first one) makes it to the json. We would like all of them to.
Thanks!
Our office-js d.ts file has many instances of overloaded functions. For example,
AppointmentComposecontainsaddFileAttachmentAsync(uri: string, attachmentName: string): void;addFileAttachmentAsync(uri: string, attachmentName: string, options: Office.AsyncContextOptions): void;addFileAttachmentAsync(uri: string, attachmentName: string, callback: (result: AsyncResult<string>) => void): void;addFileAttachmentAsync(uri: string, attachmentName: string, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult<string>) => void): void;Currently, only one overload (the sequentially first one) makes it to the json. We would like all of them to.
Thanks!