mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-18 07:35:19 +00:00
session, media_files/list endpoints
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export * from "./lib/assert";
|
||||
export * from "./lib/exists";
|
||||
export * from "./lib/match";
|
||||
export * from "./lib/types";
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
export function assert(expression: unknown, message?: string): asserts expression {
|
||||
if (!expression) {
|
||||
let err = "Assertion failed";
|
||||
if (message) err += `: ${message}`;
|
||||
|
||||
throw new Error(err);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user