Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move TS tests to dedicated folder and deps upgrade
- Loading branch information
1 parent
f124e41
commit 27ee03a
Showing
119 changed files
with
15,068 additions
and
1,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,6 +133,7 @@ grpc/google/ | |
**/Package.resolved | ||
.clangd/** | ||
package-lock.json | ||
yarn.lock | ||
/*.ilk | ||
/*.pdb | ||
.clwb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
tests/JavaScriptUnionVectorTest.js → tests/ts/JavaScriptUnionVectorTest.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
export var Abc; | ||
(function (Abc) { | ||
Abc[Abc["a"] = 0] = "a"; | ||
})(Abc || (Abc = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
export enum Abc { | ||
a = 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
export var class_; | ||
(function (class_) { | ||
class_[class_["arguments_"] = 0] = "arguments_"; | ||
})(class_ || (class_ = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
export enum class_ { | ||
arguments_ = 0 | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
export { Monster as MyGame_Example2_Monster, MonsterT as MyGame_Example2_MonsterT } from './my-game/example2/monster.js'; | ||
export { Ability, AbilityT } from './my-game/example/ability.js'; | ||
export { Any, unionToAny, unionListToAny } from './my-game/example/any.js'; | ||
export { AnyAmbiguousAliases, unionToAnyAmbiguousAliases, unionListToAnyAmbiguousAliases } from './my-game/example/any-ambiguous-aliases.js'; | ||
export { AnyUniqueAliases, unionToAnyUniqueAliases, unionListToAnyUniqueAliases } from './my-game/example/any-unique-aliases.js'; | ||
export { Color } from './my-game/example/color.js'; | ||
export { Monster, MonsterT } from './my-game/example/monster.js'; | ||
export { Race } from './my-game/example/race.js'; | ||
export { Referrable, ReferrableT } from './my-game/example/referrable.js'; | ||
export { Stat, StatT } from './my-game/example/stat.js'; | ||
export { StructOfStructs, StructOfStructsT } from './my-game/example/struct-of-structs.js'; | ||
export { StructOfStructsOfStructs, StructOfStructsOfStructsT } from './my-game/example/struct-of-structs-of-structs.js'; | ||
export { Test, TestT } from './my-game/example/test.js'; | ||
export { TestSimpleTableWithEnum, TestSimpleTableWithEnumT } from './my-game/example/test-simple-table-with-enum.js'; | ||
export { TypeAliases, TypeAliasesT } from './my-game/example/type-aliases.js'; | ||
export { Vec3, Vec3T } from './my-game/example/vec3.js'; | ||
export { InParentNamespace, InParentNamespaceT } from './my-game/in-parent-namespace.js'; |
File renamed without changes.
File renamed without changes.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
export class Ability { | ||
constructor() { | ||
this.bb = null; | ||
this.bb_pos = 0; | ||
} | ||
__init(i, bb) { | ||
this.bb_pos = i; | ||
this.bb = bb; | ||
return this; | ||
} | ||
id() { | ||
return this.bb.readUint32(this.bb_pos); | ||
} | ||
mutate_id(value) { | ||
this.bb.writeUint32(this.bb_pos + 0, value); | ||
return true; | ||
} | ||
distance() { | ||
return this.bb.readUint32(this.bb_pos + 4); | ||
} | ||
mutate_distance(value) { | ||
this.bb.writeUint32(this.bb_pos + 4, value); | ||
return true; | ||
} | ||
static getFullyQualifiedName() { | ||
return 'MyGame_Example_Ability'; | ||
} | ||
static sizeOf() { | ||
return 8; | ||
} | ||
static createAbility(builder, id, distance) { | ||
builder.prep(4, 8); | ||
builder.writeInt32(distance); | ||
builder.writeInt32(id); | ||
return builder.offset(); | ||
} | ||
unpack() { | ||
return new AbilityT(this.id(), this.distance()); | ||
} | ||
unpackTo(_o) { | ||
_o.id = this.id(); | ||
_o.distance = this.distance(); | ||
} | ||
} | ||
export class AbilityT { | ||
constructor(id = 0, distance = 0) { | ||
this.id = id; | ||
this.distance = distance; | ||
} | ||
pack(builder) { | ||
return Ability.createAbility(builder, this.id, this.distance); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// automatically generated by the FlatBuffers compiler, do not modify | ||
|
||
import * as flatbuffers from 'flatbuffers'; | ||
|
||
|
||
|
||
export class Ability { | ||
bb: flatbuffers.ByteBuffer|null = null; | ||
bb_pos = 0; | ||
__init(i:number, bb:flatbuffers.ByteBuffer):Ability { | ||
this.bb_pos = i; | ||
this.bb = bb; | ||
return this; | ||
} | ||
|
||
id():number { | ||
return this.bb!.readUint32(this.bb_pos); | ||
} | ||
|
||
mutate_id(value:number):boolean { | ||
this.bb!.writeUint32(this.bb_pos + 0, value); | ||
return true; | ||
} | ||
|
||
distance():number { | ||
return this.bb!.readUint32(this.bb_pos + 4); | ||
} | ||
|
||
mutate_distance(value:number):boolean { | ||
this.bb!.writeUint32(this.bb_pos + 4, value); | ||
return true; | ||
} | ||
|
||
static getFullyQualifiedName():string { | ||
return 'MyGame_Example_Ability'; | ||
} | ||
|
||
static sizeOf():number { | ||
return 8; | ||
} | ||
|
||
static createAbility(builder:flatbuffers.Builder, id: number, distance: number):flatbuffers.Offset { | ||
builder.prep(4, 8); | ||
builder.writeInt32(distance); | ||
builder.writeInt32(id); | ||
return builder.offset(); | ||
} | ||
|
||
|
||
unpack(): AbilityT { | ||
return new AbilityT( | ||
this.id(), | ||
this.distance() | ||
); | ||
} | ||
|
||
|
||
unpackTo(_o: AbilityT): void { | ||
_o.id = this.id(); | ||
_o.distance = this.distance(); | ||
} | ||
} | ||
|
||
export class AbilityT { | ||
constructor( | ||
public id: number = 0, | ||
public distance: number = 0 | ||
){} | ||
|
||
|
||
pack(builder:flatbuffers.Builder): flatbuffers.Offset { | ||
return Ability.createAbility(builder, | ||
this.id, | ||
this.distance | ||
); | ||
} | ||
} |
Oops, something went wrong.