Skip to content

Commit

Permalink
fix(document-viewer): fix param type (#1634)
Browse files Browse the repository at this point in the history
Options for  viewDocument should be an DocumentViewerOptions object, not array of DocumentViewerOptions objects
  • Loading branch information
troyanskiy authored and ihadeed committed Jun 1, 2017
1 parent 9bf9e9d commit 985193b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/document-viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ export class DocumentViewer extends IonicNativePlugin {
*
* @param url {string} Url to the file
* @param contentType {string} Content type of the file
* @param options {Array<DocumentViewerOptions>} options
* @param options {DocumentViewerOptions} options
* @param [onShow] {Function}
* @param [onClose] {Function}
* @param [onMissingApp] {Function}
* @param [onError] {Function}
*/
@Cordova({ sync: true })
viewDocument(url: string, contentType: string, options: Array<DocumentViewerOptions>, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { }
viewDocument(url: string, contentType: string, options: DocumentViewerOptions, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { }

}

0 comments on commit 985193b

Please sign in to comment.