Init: RoggioApp Architecture, Prisma Schema, API MVP

This commit is contained in:
Clara Zetkin
2026-04-26 19:42:42 +02:00
commit 193b29e8a9
5256 changed files with 1446953 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { float } from './float.js';
import { array } from './array.js';
import { Float32Array } from '../utils/globals.js';
function toTypedMapper(data) {
return Float32Array.from(data);
}
function fromTypedUnmapper(value) {
if (!(value instanceof Float32Array))
throw new Error('Unexpected type');
return [...value];
}
export function float32Array(constraints = {}) {
return array(float(constraints), constraints).map(toTypedMapper, fromTypedUnmapper);
}