mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-20 19:47:32 +00:00
Wrap types in namespace for --ts-flat-files and --gen-all (#7451)
* Wrap types in namespace for --ts-flat-files and --gen-all * Fixes for escaping object types * Added to generate_code
This commit is contained in:
@@ -18,7 +18,7 @@ export class Monster {
|
||||
return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
static getFullyQualifiedName() {
|
||||
return 'MyGame.Example2.Monster';
|
||||
return 'MyGame_Example2_Monster';
|
||||
}
|
||||
static startMonster(builder) {
|
||||
builder.startObject(0);
|
||||
|
||||
@@ -23,7 +23,7 @@ static getSizePrefixedRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Mon
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
return 'MyGame.Example2.Monster';
|
||||
return 'MyGame_Example2_Monster';
|
||||
}
|
||||
|
||||
static startMonster(builder:flatbuffers.Builder) {
|
||||
|
||||
Reference in New Issue
Block a user