mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-06 12:46:54 +00:00
[TS] Remove wrong and obsolete NS prefix use (#6604)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user