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
+18
View File
@@ -0,0 +1,18 @@
import { buildSchedulerFor } from './_internals/helpers/BuildSchedulerFor.js';
import { SchedulerArbitrary } from './_internals/SchedulerArbitrary.js';
export function scheduler(constraints) {
const { act = (f) => f() } = constraints || {};
return new SchedulerArbitrary(act);
}
function schedulerFor(customOrderingOrConstraints, constraintsOrUndefined) {
const { act = (f) => f() } = Array.isArray(customOrderingOrConstraints)
? constraintsOrUndefined || {}
: customOrderingOrConstraints || {};
if (Array.isArray(customOrderingOrConstraints)) {
return buildSchedulerFor(act, customOrderingOrConstraints);
}
return function (_strs, ...ordering) {
return buildSchedulerFor(act, ordering);
};
}
export { schedulerFor };