Feature: Basic Events, Models and Projections #2

Merged
piarrot merged 37 commits from feat-base-projections into main 2024-10-15 15:20:25 -03:00
3 changed files with 10 additions and 0 deletions
Showing only changes of commit 76af85a496 - Show all commits

View File

@ -5,4 +5,5 @@ export * from "./result/index.js";
export * from "./run/index.js";
export * from "./time/index.js";
export * from "./types/index.js";
export * from "./utils/index.js";
export * from "./variant/index.js";

View File

@ -0,0 +1,8 @@
import { UnexpectedError } from "../error/unexpected-error.js";
export function ensureValue<T>(value?: T): T {
if (!value) {
throw new UnexpectedError("Value is undefined");
}
return value;
}

View File

@ -0,0 +1 @@
export * from "./ensure-value.js";