mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-21 07:55:55 +00:00
session, media_files/list endpoints
This commit is contained in:
@@ -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