libmodulor
Version:
A TypeScript library to create platform-agnostic applications
12 lines (11 loc) • 326 B
JavaScript
import { UCExecMode, } from '../../../uc/index.js';
export function shouldMountUC(ucd) {
const { lifecycle: { server }, } = ucd;
if (typeof server !== 'object') {
return 'no ucd.lifecycle.server';
}
if (server.execMode === UCExecMode.AUTO) {
return 'execMode is AUTO';
}
return null;
}