summaryrefslogtreecommitdiff
path: root/js/read_link.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-03 21:12:23 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-04 00:25:55 -0400
commitf774953011cb3ad85914bc9f5f66aa121f00528d (patch)
treee2943c332cd4d2af1fbbabf2e9b3ed879978b746 /js/read_link.ts
parent51dc46eff4a122543f4a290c00fa29e3b272f70f (diff)
Rename flatbuffer base.msg to base.inner
This better disambiguates with the msg_generated.ts module, which in JS we call "fbs", but would be better called "msg".
Diffstat (limited to 'js/read_link.ts')
-rw-r--r--js/read_link.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/read_link.ts b/js/read_link.ts
index 38db09d62..283f98dfe 100644
--- a/js/read_link.ts
+++ b/js/read_link.ts
@@ -29,15 +29,15 @@ function req(name: string): [flatbuffers.Builder, fbs.Any, flatbuffers.Offset] {
const name_ = builder.createString(name);
fbs.Readlink.startReadlink(builder);
fbs.Readlink.addName(builder, name_);
- const msg = fbs.Readlink.endReadlink(builder);
- return [builder, fbs.Any.Readlink, msg];
+ const inner = fbs.Readlink.endReadlink(builder);
+ return [builder, fbs.Any.Readlink, inner];
}
function res(baseRes: null | fbs.Base): string {
assert(baseRes !== null);
- assert(fbs.Any.ReadlinkRes === baseRes!.msgType());
+ assert(fbs.Any.ReadlinkRes === baseRes!.innerType());
const res = new fbs.ReadlinkRes();
- assert(baseRes!.msg(res) !== null);
+ assert(baseRes!.inner(res) !== null);
const path = res.path();
assert(path !== null);
return path!;