@@ -604,33 +604,30 @@ export class TSDBuilder extends ExportsWalker {
604604 build ( ) : string {
605605 var sb = this . sb ;
606606 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" ) ;
612611 if ( isWasm64 ) {
613- sb . push ( " type isize = bigint;\n" ) ;
612+ sb . push ( "type isize = bigint;\n" ) ;
614613 } else {
615- sb . push ( " type isize = number;\n" ) ;
614+ sb . push ( "type isize = number;\n" ) ;
616615 }
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" ) ;
621620 if ( isWasm64 ) {
622- sb . push ( " type usize = bigint;\n" ) ;
621+ sb . push ( "type usize = bigint;\n" ) ;
623622 } else {
624- sb . push ( " type usize = number;\n" ) ;
623+ sb . push ( "type usize = number;\n" ) ;
625624 }
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" ) ;
629628 ++ this . indentLevel ;
630629 this . walk ( ) ;
631630 -- this . indentLevel ;
632- sb . push ( "}\n" ) ;
633- sb . push ( "export default ASModule;\n" ) ;
634631 return this . sb . join ( "" ) ;
635632 }
636633}
0 commit comments