mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 18:58:06 +00:00
committed by
Wouter van Oortmerssen
parent
4fdfe0d468
commit
b59a1ca2f8
@@ -424,7 +424,7 @@ The first step is to import/include the library, generated files, etc.
|
|||||||
~~~
|
~~~
|
||||||
</div>
|
</div>
|
||||||
<div class="language-typescript">
|
<div class="language-typescript">
|
||||||
// note: import flabuffers with your desired import method
|
// note: import flatbuffers with your desired import method
|
||||||
|
|
||||||
import { MyGame } from './monster_generated';
|
import { MyGame } from './monster_generated';
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ First, include the library and generated code. Then read the file into an
|
|||||||
the ByteBuffer to the `getRootAsMonster` function.
|
the ByteBuffer to the `getRootAsMonster` function.
|
||||||
|
|
||||||
~~~{.ts}
|
~~~{.ts}
|
||||||
// note: import flabuffers with your desired import method
|
// note: import flatbuffers with your desired import method
|
||||||
|
|
||||||
import { MyGame } from './monster_generated';
|
import { MyGame } from './monster_generated';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user