This commit is contained in:
2025-12-12 01:11:36 +01:00
parent ec3ddc3a5c
commit 6a88fe93ab
125 changed files with 1513 additions and 803 deletions

View File

@@ -0,0 +1,7 @@
export function coalesce<T>(value: T | undefined | null, fallback: T): T {
return value ?? fallback;
}
export function present<T>(value: T | undefined | null): T | undefined {
return value === undefined || value === null ? undefined : value;
}

View File

@@ -1,3 +1,4 @@
export * from './Entity';
export * from './ValueObject';
export * from './Service';
export * from './Service';
export * from './Option';