mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-16 09:12:22 +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:
@@ -40,7 +40,7 @@ mutate_sword_attack_damage(value:number):boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
static getFullyQualifiedName(): "Attacker" {
|
||||
return 'Attacker';
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ mutate_books_read(value:number):boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
static getFullyQualifiedName(): "BookReader" {
|
||||
return 'BookReader';
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ mutate_weight(value:number):boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
static getFullyQualifiedName(): "FallingTub" {
|
||||
return 'FallingTub';
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ mutate_length(value:number):boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
static getFullyQualifiedName(): "HandFan" {
|
||||
return 'HandFan';
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ charactersLength():number {
|
||||
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
static getFullyQualifiedName(): "Movie" {
|
||||
return 'Movie';
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ mutate_hair_length(value:number):boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
static getFullyQualifiedName():string {
|
||||
static getFullyQualifiedName(): "Rapunzel" {
|
||||
return 'Rapunzel';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user