mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-21 17:58:28 +00:00
Update ts codegen (#8421)
Makes the return type of `static getFullyQualifiedName()` be a string literal instead of just the string type Update tests Co-authored-by: Björn Harrtell <bjornharrtell@users.noreply.github.com>
This commit is contained in:
@@ -24,7 +24,7 @@ static getSizePrefixedRootAsMonster(bb:flatbuffers.ByteBuffer, obj?:Monster):Mon
|
||||
return (obj || new Monster()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
static getFullyQualifiedName(): "MyGame.Example2.Monster" {
|
||||
return 'MyGame.Example2.Monster';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user