@@ -215,7 +215,7 @@ interface GmailGet {
215
215
/**
216
216
Does the same as visible_emails, but with a callback instead.
217
217
*/
218
- visible_emails_async ( callback : ( emails : string [ ] ) => void ) ;
218
+ visible_emails_async ( callback : ( emails : string [ ] ) => void ) : void ;
219
219
/**
220
220
Returns a list of object representation from emails that are
221
221
currently selected in the inbox view. The data does not come
@@ -255,7 +255,7 @@ interface GmailGet {
255
255
string or binary format depending on the value of the
256
256
`preferBinary`-parameter.
257
257
*/
258
- email_source_async ( email_id : string , callback : ( email_source : string | Uint8Array ) => void , error_callback ?: ( jqxhr , textStatus : string , errorThrown : string ) => void , preferBinary ?: boolean ) : void ;
258
+ email_source_async ( email_id : string , callback : ( email_source : string | Uint8Array ) => void , error_callback ?: ( jqxhr : JQueryXHR , textStatus : string , errorThrown : string ) => void , preferBinary ?: boolean ) : void ;
259
259
/**
260
260
Does the same as email_source_async, but uses ES6 promises.
261
261
*/
@@ -616,10 +616,10 @@ interface GmailTools {
616
616
observes every element inserted into the DOM by Gmail and looks at the classes on those elements,
617
617
checking for any configured observers related to those classes
618
618
*/
619
- insertion_observer ( target : HTMLElement | string , dom_observers : any , dom_observer_map : any , sub : any ) ;
619
+ insertion_observer ( target : HTMLElement | string , dom_observers : any , dom_observer_map : any , sub : any ) : void ;
620
620
621
621
make_request ( link : string , method : GmailHttpRequestMethod , disable_cache : boolean ) : string ;
622
- make_request_async ( link : string , method : GmailHttpRequestMethod , callback : ( data : string ) => void , disable_cache : boolean ) ;
622
+ make_request_async ( link : string , method : GmailHttpRequestMethod , callback : ( data : string ) => void , disable_cache : boolean ) : void ;
623
623
624
624
/**
625
625
Creates a request to download user-content from Gmail.
@@ -672,7 +672,7 @@ interface GmailTools {
672
672
673
673
return-value is jQuery-instance representing the created button.
674
674
*/
675
- add_attachment_button ( attachment : GmailDomAttachment , contentHtml : string | null , customCssClas : string | null , tooltip : string , onClickFunction : Function ) ;
675
+ add_attachment_button ( attachment : GmailDomAttachment , contentHtml : string | null , customCssClas : string | null , tooltip : string , onClickFunction : Function ) : JQuery ;
676
676
677
677
remove_modal_window ( ) : void ;
678
678
add_modal_window ( title : string , content_html : string , onClickOk : Function , onClickCancel ?: Function , onClickClose ?: Function ) : void ;
@@ -729,13 +729,13 @@ interface GmailObserve {
729
729
on ( action : "view_thread" , callback : ( obj : GmailDomThread ) => void ) : void ;
730
730
on ( action : "view_email" , callback : ( obj : GmailDomEmail ) => void ) : void ;
731
731
on ( action : "load_email_menu" , callback : ( obj : JQuery ) => void ) : void ;
732
- on ( action : "compose" , callback : ( GmailDomCompose , type : GmailComposeType ) => void ) : void ;
732
+ on ( action : "compose" , callback : ( obj : GmailDomCompose , type : GmailComposeType ) => void ) : void ;
733
733
on ( action : "load" , callback : ( ) => void ) : void ;
734
734
/**
735
735
This is the key feature of gmail.js. This method allows you to
736
736
add triggers to all of these actions so you can build your
737
737
custom extension/tool with this library.
738
-
738
+
739
739
You simply specify the action name and your function that the
740
740
method will return data to when the actions are triggered and
741
741
it does the rest. You can have multiple triggers
@@ -775,7 +775,7 @@ interface GmailObserve {
775
775
/**
776
776
Trigger any specified DOM events passing a specified element & optional handler
777
777
*/
778
- trigger_dom ( observer : any , element : HTMLElement , handler ?: Function ) ;
778
+ trigger_dom ( observer : any , element : HTMLElement , handler ?: Function ) : void ;
779
779
780
780
initialize_dom_observers ( ) : void ;
781
781
0 commit comments