forked from BigfootDev/flatbuffers
The headline here is adding a flatbuffer_ts_library rule for generating typescript code in bazel. This entails some non-trivial other changes, but ideally none are user-visible. In particular: * Added a --ts-flat-file flag that generates a single *_generated.ts file instead of separate files for each typescript type. This makes bazel much happier. * Import the bazel rules_nodejs stuff needed to support building typescript in bazel * Move flatbuffers.ts to index.ts because I wasn't sure how to make bazel comprehend the "main" attribute of the package.json. Happy to take another stab at figuring that out if really needed. * Fix another couple keyword escaping spots in typescript...
13 lines
439 B
TypeScript
13 lines
439 B
TypeScript
export { SIZEOF_SHORT } from './constants.js'
|
|
export { SIZEOF_INT } from './constants.js'
|
|
export { FILE_IDENTIFIER_LENGTH } from './constants.js'
|
|
export { SIZE_PREFIX_LENGTH } from './constants.js'
|
|
|
|
export { Table, Offset } from './types.js'
|
|
|
|
export { int32, float32, float64, isLittleEndian } from './utils.js'
|
|
|
|
export { Encoding } from './encoding.js'
|
|
export { Builder } from './builder.js'
|
|
export { ByteBuffer } from './byte-buffer.js'
|