@@ -2712,7 +2712,7 @@ __wbg_set_wasm(wasm);"
2712
2712
match & export. kind {
2713
2713
AuxExportKind :: Function ( name) => {
2714
2714
if let Some ( ts_sig) = ts_sig {
2715
- self . typescript . push_str ( & js_docs ) ;
2715
+ self . typescript . push_str ( & ts_docs ) ;
2716
2716
self . typescript . push_str ( "export function " ) ;
2717
2717
self . typescript . push_str ( name) ;
2718
2718
self . typescript . push_str ( ts_sig) ;
@@ -2730,7 +2730,7 @@ __wbg_set_wasm(wasm);"
2730
2730
}
2731
2731
2732
2732
exported. has_constructor = true ;
2733
- exported. push ( & js_docs , "constructor" , "" , & code, ts_sig) ;
2733
+ exported. push ( "constructor" , "" , & js_docs , & code, & ts_docs , ts_sig) ;
2734
2734
}
2735
2735
AuxExportKind :: Method {
2736
2736
class,
@@ -2783,7 +2783,7 @@ __wbg_set_wasm(wasm);"
2783
2783
}
2784
2784
} ;
2785
2785
2786
- exported. push ( & js_docs , name, & prefix, & code, ts) ;
2786
+ exported. push ( name, & prefix, & js_docs , & code, & ts_docs , ts) ;
2787
2787
}
2788
2788
}
2789
2789
}
@@ -4287,20 +4287,21 @@ fn property_accessor(name: &str) -> String {
4287
4287
impl ExportedClass {
4288
4288
fn push (
4289
4289
& mut self ,
4290
- docs : & str ,
4291
4290
function_name : & str ,
4292
4291
function_prefix : & str ,
4292
+ js_docs : & str ,
4293
4293
js : & str ,
4294
+ ts_docs : & str ,
4294
4295
ts : Option < & str > ,
4295
4296
) {
4296
- self . contents . push_str ( docs ) ;
4297
+ self . contents . push_str ( js_docs ) ;
4297
4298
self . contents . push_str ( function_prefix) ;
4298
4299
self . contents . push_str ( function_name) ;
4299
4300
self . contents . push_str ( js) ;
4300
4301
self . contents . push ( '\n' ) ;
4301
4302
if let Some ( ts) = ts {
4302
- if !docs . is_empty ( ) {
4303
- for line in docs . lines ( ) {
4303
+ if !ts_docs . is_empty ( ) {
4304
+ for line in ts_docs . lines ( ) {
4304
4305
self . typescript . push_str ( " " ) ;
4305
4306
self . typescript . push_str ( line) ;
4306
4307
self . typescript . push ( '\n' ) ;
0 commit comments