diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-22 13:14:27 +1100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-23 04:48:00 -0700 |
| commit | 8ef7da261149ed03f25bdb5ea2611f8ce84a4d78 (patch) | |
| tree | 8399dd030cf6fb172980d3b2c65bcf82d62b1168 /src/msg.fbs | |
| parent | c0492ef061afd5af2044d5952432d223615841a7 (diff) | |
Enforce media types
Diffstat (limited to 'src/msg.fbs')
| -rw-r--r-- | src/msg.fbs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/msg.fbs b/src/msg.fbs index 9aa9b069c..870da1c40 100644 --- a/src/msg.fbs +++ b/src/msg.fbs @@ -102,6 +102,13 @@ table CwdRes { cwd: string; } +enum MediaType: byte { + JavaScript = 0, + TypeScript, + Json, + Unknown +} + table Base { cmd_id: uint32; sync: bool = true; // TODO(ry) Change default to false. @@ -137,6 +144,7 @@ table CodeFetchRes { // is the location of the locally downloaded source code. module_name: string; filename: string; + media_type: MediaType; source_code: string; output_code: string; // Non-empty only if cached. } |
