[TS] Remove wrong and obsolete NS prefix use (#6604)

This commit is contained in:
Björn Harrtell
2021-05-03 21:04:34 +02:00
committed by GitHub
parent a27c7d8093
commit 60ff76630d
8 changed files with 391 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
// automatically generated by the FlatBuffers compiler, do not modify
import { TableInNestedNS } from '../../namespace-a/namespace-b/table-in-nested-n-s';
export var UnionInNestedNS;
(function (UnionInNestedNS) {
UnionInNestedNS[UnionInNestedNS["NONE"] = 0] = "NONE";
UnionInNestedNS[UnionInNestedNS["TableInNestedNS"] = 1] = "TableInNestedNS";
})(UnionInNestedNS || (UnionInNestedNS = {}));
export function unionToUnionInNestedNS(type, accessor) {
switch (UnionInNestedNS[type]) {
case 'NONE': return null;
case 'TableInNestedNS': return accessor(new TableInNestedNS());
default: return null;
}
}
export function unionListToUnionInNestedNS(type, accessor, index) {
switch (UnionInNestedNS[type]) {
case 'NONE': return null;
case 'TableInNestedNS': return accessor(index, new TableInNestedNS());
default: return null;
}
}