mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-04 16:01:09 +00:00
[JS/TS] Modernize TypeScript / JavaScript flatbuffers support (#6095)
This commit is contained in:
14
ts/types.ts
Normal file
14
ts/types.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { ByteBuffer } from './byte-buffer'
|
||||
import { Builder } from './builder'
|
||||
|
||||
export type Offset = number;
|
||||
|
||||
export type Table = {
|
||||
bb: ByteBuffer
|
||||
bb_pos: number
|
||||
};
|
||||
|
||||
export interface IGeneratedObject {
|
||||
pack(builder:Builder): Offset
|
||||
unpack(): IGeneratedObject
|
||||
}
|
||||
Reference in New Issue
Block a user