Generating the most strict TS code possible (#4286)

* Eclipse ignore

* TypeScript support

* Prefixing enums

* Test results

* Merged JS and TS generators

* Fixed AppVeyor build problems

* Fixed more AppVeyor build problems

* Fixed more AppVeyor build problems

* Changed TS flag to options struct

* Storing options by value

* Removed unneeded const

* Re-export support for unions

* Uint support

* Casting bools to numbers for mutation

* TS shell tests

* Reverted generates js test file to original version

* Backing up js tests and properly generating test data

* Not importing flatbuffers for TS test generation

* Not overwriting generated js for tests

* AppVeyor test fixes

* Generating the most strict TS code possible
This commit is contained in:
Kamil Rojewski
2017-05-02 01:05:53 +02:00
committed by Wouter van Oortmerssen
parent 8b92122f33
commit 86777bd66b
8 changed files with 57 additions and 54 deletions

View File

@@ -50,7 +50,7 @@ MyGame.Example2.Monster = function() {
/**
* @type {flatbuffers.ByteBuffer}
*/
this.bb = null;
this.bb = undefined;
/**
* @type {number}
@@ -101,7 +101,7 @@ MyGame.Example.Test = function() {
/**
* @type {flatbuffers.ByteBuffer}
*/
this.bb = null;
this.bb = undefined;
/**
* @type {number}
@@ -185,7 +185,7 @@ MyGame.Example.TestSimpleTableWithEnum = function() {
/**
* @type {flatbuffers.ByteBuffer}
*/
this.bb = null;
this.bb = undefined;
/**
* @type {number}
@@ -267,7 +267,7 @@ MyGame.Example.Vec3 = function() {
/**
* @type {flatbuffers.ByteBuffer}
*/
this.bb = null;
this.bb = undefined;
/**
* @type {number}
@@ -439,7 +439,7 @@ MyGame.Example.Ability = function() {
/**
* @type {flatbuffers.ByteBuffer}
*/
this.bb = null;
this.bb = undefined;
/**
* @type {number}
@@ -522,7 +522,7 @@ MyGame.Example.Stat = function() {
/**
* @type {flatbuffers.ByteBuffer}
*/
this.bb = null;
this.bb = undefined;
/**
* @type {number}
@@ -552,7 +552,7 @@ MyGame.Example.Stat.getRootAsStat = function(bb, obj) {
/**
* @param {flatbuffers.Encoding=} optionalEncoding
* @returns {string|Uint8Array}
* @returns {string|Uint8Array|null}
*/
MyGame.Example.Stat.prototype.id = function(optionalEncoding) {
var offset = this.bb.__offset(this.bb_pos, 4);
@@ -654,7 +654,7 @@ MyGame.Example.Monster = function() {
/**
* @type {flatbuffers.ByteBuffer}
*/
this.bb = null;
this.bb = undefined;
/**
* @type {number}
@@ -747,7 +747,7 @@ MyGame.Example.Monster.prototype.mutate_hp = function(value) {
/**
* @param {flatbuffers.Encoding=} optionalEncoding
* @returns {string|Uint8Array}
* @returns {string|Uint8Array|null}
*/
MyGame.Example.Monster.prototype.name = function(optionalEncoding) {
var offset = this.bb.__offset(this.bb_pos, 10);