summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2022-02-06 22:12:42 +0200
committerJan Tuomi <jans.tuomi@gmail.com>2022-02-06 22:12:42 +0200
commit954244171108b039ce3e472e8eb09355c792af8d (patch)
treeb13e5785dce40a72f3ae0801751b1d64153a9bc8
Initial commit
-rw-r--r--index.ts15
-rw-r--r--package.json8
2 files changed, 23 insertions, 0 deletions
diff --git a/index.ts b/index.ts
new file mode 100644
index 0000000..2c162c1
--- /dev/null
+++ b/index.ts
@@ -0,0 +1,15 @@
+export namespace RunnerApiSubmitRequest {
+ export const path = "/submit"
+ export interface Body {
+ source: string
+ }
+}
+
+export namespace RunnerApiSubmitResponse {
+ export interface Body {
+ result: {
+ stdout: string
+ stderr: string
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..7d3e012
--- /dev/null
+++ b/package.json
@@ -0,0 +1,8 @@
+{
+ "name": "slam-types",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.ts",
+ "author": "",
+ "license": "ISC"
+} \ No newline at end of file