summaryrefslogtreecommitdiff
path: root/src/msg.fbs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-10-22 13:14:27 +1100
committerRyan Dahl <ry@tinyclouds.org>2018-10-23 04:48:00 -0700
commit8ef7da261149ed03f25bdb5ea2611f8ce84a4d78 (patch)
tree8399dd030cf6fb172980d3b2c65bcf82d62b1168 /src/msg.fbs
parentc0492ef061afd5af2044d5952432d223615841a7 (diff)
Enforce media types
Diffstat (limited to 'src/msg.fbs')
-rw-r--r--src/msg.fbs8
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.
}