@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
1818 return to ;
1919} ;
2020var __toESM = ( mod , isNodeMode , target ) => ( target = mod != null ? __create ( __getProtoOf ( mod ) ) : { } , __copyProps (
21+ // If the importer is in node compatibility mode or this is not an ESM
22+ // file that has been converted to a CommonJS file using a Babel-
23+ // compatible transform (i.e. "__esModule" has not been set), then set
24+ // "default" to the CommonJS "module.exports" for node compatibility.
2125 isNodeMode || ! mod || ! mod . __esModule ? __defProp ( target , "default" , { value : mod , enumerable : true } ) : target ,
2226 mod
2327) ) ;
@@ -27,7 +31,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
2731var monster_test_exports = { } ;
2832__export ( monster_test_exports , {
2933 MyGame : ( ) => my_game_exports ,
30- TableA : ( ) => TableA
34+ TableA : ( ) => TableA ,
35+ TableAT : ( ) => TableAT
3136} ) ;
3237module . exports = __toCommonJS ( monster_test_exports ) ;
3338
@@ -167,6 +172,7 @@ __export(my_game_exports, {
167172 Example : ( ) => example_exports ,
168173 Example2 : ( ) => example2_exports ,
169174 InParentNamespace : ( ) => InParentNamespace ,
175+ InParentNamespaceT : ( ) => InParentNamespaceT ,
170176 OtherNameSpace : ( ) => other_name_space_exports
171177} ) ;
172178
@@ -227,21 +233,31 @@ var InParentNamespaceT = class {
227233var example_exports = { } ;
228234__export ( example_exports , {
229235 Ability : ( ) => Ability ,
236+ AbilityT : ( ) => AbilityT ,
230237 Any : ( ) => Any ,
231238 AnyAmbiguousAliases : ( ) => AnyAmbiguousAliases ,
232239 AnyUniqueAliases : ( ) => AnyUniqueAliases ,
233240 Color : ( ) => Color ,
234241 LongEnum : ( ) => LongEnum ,
235242 Monster : ( ) => Monster2 ,
243+ MonsterT : ( ) => MonsterT2 ,
236244 Race : ( ) => Race ,
237245 Referrable : ( ) => Referrable ,
246+ ReferrableT : ( ) => ReferrableT ,
238247 Stat : ( ) => Stat ,
248+ StatT : ( ) => StatT ,
239249 StructOfStructs : ( ) => StructOfStructs ,
240250 StructOfStructsOfStructs : ( ) => StructOfStructsOfStructs ,
251+ StructOfStructsOfStructsT : ( ) => StructOfStructsOfStructsT ,
252+ StructOfStructsT : ( ) => StructOfStructsT ,
241253 Test : ( ) => Test ,
242254 TestSimpleTableWithEnum : ( ) => TestSimpleTableWithEnum ,
255+ TestSimpleTableWithEnumT : ( ) => TestSimpleTableWithEnumT ,
256+ TestT : ( ) => TestT ,
243257 TypeAliases : ( ) => TypeAliases ,
244- Vec3 : ( ) => Vec3
258+ TypeAliasesT : ( ) => TypeAliasesT ,
259+ Vec3 : ( ) => Vec3 ,
260+ Vec3T : ( ) => Vec3T
245261} ) ;
246262
247263// my-game/example/ability.js
@@ -916,6 +932,10 @@ var Monster2 = class {
916932 const offset = this . bb . __offset ( this . bb_pos , 24 ) ;
917933 return offset ? this . bb . __vector_len ( this . bb_pos + offset ) : 0 ;
918934 }
935+ /**
936+ * an example documentation comment: this will end up in the generated code
937+ * multiline too
938+ */
919939 testarrayoftables ( index , obj ) {
920940 const offset = this . bb . __offset ( this . bb_pos , 26 ) ;
921941 return offset ? ( obj || new Monster2 ( ) ) . __init ( this . bb . __indirect ( this . bb . __vector ( this . bb_pos + offset ) + index * 4 ) , this . bb ) : null ;
@@ -2502,15 +2522,18 @@ var TypeAliasesT = class {
25022522// my-game/example2.js
25032523var example2_exports = { } ;
25042524__export ( example2_exports , {
2505- Monster : ( ) => Monster
2525+ Monster : ( ) => Monster ,
2526+ MonsterT : ( ) => MonsterT
25062527} ) ;
25072528
25082529// my-game/other-name-space.js
25092530var other_name_space_exports = { } ;
25102531__export ( other_name_space_exports , {
25112532 FromInclude : ( ) => FromInclude ,
25122533 TableB : ( ) => TableB ,
2513- Unused : ( ) => Unused
2534+ TableBT : ( ) => TableBT ,
2535+ Unused : ( ) => Unused ,
2536+ UnusedT : ( ) => UnusedT
25142537} ) ;
25152538
25162539// my-game/other-name-space/from-include.js
0 commit comments