about summary refs log tree commit diff
path: root/kittybox-rs/javascript/src/lib.ts
diff options
context:
space:
mode:
Diffstat (limited to 'kittybox-rs/javascript/src/lib.ts')
-rw-r--r--kittybox-rs/javascript/src/lib.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/kittybox-rs/javascript/src/lib.ts b/kittybox-rs/javascript/src/lib.ts
new file mode 100644
index 0000000..38ba65b
--- /dev/null
+++ b/kittybox-rs/javascript/src/lib.ts
@@ -0,0 +1,3 @@
+export function unreachable(msg: string): never {
+  throw new Error(msg);
+}