Fix StartOS 0.4 TypeScript packaging to match SDK API

This commit is contained in:
MacPro
2026-04-09 15:10:44 -05:00
parent d5046a0daf
commit 0b70cbb2bf
3436 changed files with 867051 additions and 92 deletions
+19
View File
@@ -0,0 +1,19 @@
import * as T from '../../../base/lib/types';
import { Daemons } from './Daemons';
import '../../../base/lib/interfaces/ServiceInterfaceBuilder';
import '../../../base/lib/interfaces/Origin';
/** Default time in milliseconds to wait for a process to exit after SIGTERM before escalating to SIGKILL */
export declare const DEFAULT_SIGTERM_TIMEOUT = 60000;
/**
* Used to ensure that the main function is running with the valid proofs.
* We first do the folowing order of things
* 1. We get the interfaces
* 2. We setup all the commands to setup the system
* 3. We create the health checks
* 4. We setup the daemons init system
* @param fn
* @returns
*/
export declare const setupMain: <Manifest extends T.SDKManifest>(fn: (o: {
effects: T.Effects;
}) => Promise<Daemons<Manifest, any>>) => T.ExpectedExports.main;