From f774953011cb3ad85914bc9f5f66aa121f00528d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 3 Oct 2018 21:12:23 -0400 Subject: 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". --- js/stat.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/stat.ts') diff --git a/js/stat.ts b/js/stat.ts index 284679f84..db1af6974 100644 --- a/js/stat.ts +++ b/js/stat.ts @@ -64,14 +64,14 @@ function req( fbs.Stat.startStat(builder); fbs.Stat.addFilename(builder, filename_); fbs.Stat.addLstat(builder, lstat); - const msg = fbs.Stat.endStat(builder); - return [builder, fbs.Any.Stat, msg]; + const inner = fbs.Stat.endStat(builder); + return [builder, fbs.Any.Stat, inner]; } function res(baseRes: null | fbs.Base): FileInfo { assert(baseRes != null); - assert(fbs.Any.StatRes === baseRes!.msgType()); + assert(fbs.Any.StatRes === baseRes!.innerType()); const res = new fbs.StatRes(); - assert(baseRes!.msg(res) != null); + assert(baseRes!.inner(res) != null); return new FileInfoImpl(res); } -- cgit v1.2.3