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 68ec875ee7
commit 8298c083c7
3436 changed files with 867051 additions and 92 deletions
@@ -0,0 +1,18 @@
import { Effects } from '../Effects';
import { Manifest, PackageId } from '../osBindings';
import { Watchable } from './Watchable';
export declare class GetServiceManifest<Mapped = Manifest | null> extends Watchable<Manifest | null, Mapped> {
readonly opts: {
packageId: PackageId;
};
protected readonly label = "GetServiceManifest";
constructor(effects: Effects, opts: {
packageId: PackageId;
}, options?: {
map?: (value: Manifest | null) => Mapped;
eq?: (a: Mapped, b: Mapped) => boolean;
});
protected fetch(callback?: () => void): Promise<Manifest>;
}
export declare function getServiceManifest(effects: Effects, packageId: PackageId): GetServiceManifest<Manifest | null>;
export declare function getServiceManifest<Mapped>(effects: Effects, packageId: PackageId, map: (manifest: Manifest | null) => Mapped, eq?: (a: Mapped, b: Mapped) => boolean): GetServiceManifest<Mapped>;