@@ -604,33 +604,30 @@ export class TSDBuilder extends ExportsWalker {
604
604
build ( ) : string {
605
605
var sb = this . sb ;
606
606
var isWasm64 = this . program . options . isWasm64 ;
607
- sb . push ( "declare module ASModule {\n" ) ;
608
- sb . push ( " type i8 = number;\n" ) ;
609
- sb . push ( " type i16 = number;\n" ) ;
610
- sb . push ( " type i32 = number;\n" ) ;
611
- sb . push ( " type i64 = bigint;\n" ) ;
607
+ sb . push ( "type i8 = number;\n" ) ;
608
+ sb . push ( "type i16 = number;\n" ) ;
609
+ sb . push ( "type i32 = number;\n" ) ;
610
+ sb . push ( "type i64 = bigint;\n" ) ;
612
611
if ( isWasm64 ) {
613
- sb . push ( " type isize = bigint;\n" ) ;
612
+ sb . push ( "type isize = bigint;\n" ) ;
614
613
} else {
615
- sb . push ( " type isize = number;\n" ) ;
614
+ sb . push ( "type isize = number;\n" ) ;
616
615
}
617
- sb . push ( " type u8 = number;\n" ) ;
618
- sb . push ( " type u16 = number;\n" ) ;
619
- sb . push ( " type u32 = number;\n" ) ;
620
- sb . push ( " type u64 = bigint;\n" ) ;
616
+ sb . push ( "type u8 = number;\n" ) ;
617
+ sb . push ( "type u16 = number;\n" ) ;
618
+ sb . push ( "type u32 = number;\n" ) ;
619
+ sb . push ( "type u64 = bigint;\n" ) ;
621
620
if ( isWasm64 ) {
622
- sb . push ( " type usize = bigint;\n" ) ;
621
+ sb . push ( "type usize = bigint;\n" ) ;
623
622
} else {
624
- sb . push ( " type usize = number;\n" ) ;
623
+ sb . push ( "type usize = number;\n" ) ;
625
624
}
626
- sb . push ( " type f32 = number;\n" ) ;
627
- sb . push ( " type f64 = number;\n" ) ;
628
- sb . push ( " type bool = boolean | number;\n" ) ;
625
+ sb . push ( "type f32 = number;\n" ) ;
626
+ sb . push ( "type f64 = number;\n" ) ;
627
+ sb . push ( "type bool = boolean | number;\n" ) ;
629
628
++ this . indentLevel ;
630
629
this . walk ( ) ;
631
630
-- this . indentLevel ;
632
- sb . push ( "}\n" ) ;
633
- sb . push ( "export default ASModule;\n" ) ;
634
631
return this . sb . join ( "" ) ;
635
632
}
636
633
}
0 commit comments