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
@@ -0,0 +1,25 @@
import { Effects } from '../Effects';
import { PackageId } from '../osBindings';
import { ServiceInterfaceFilled } from './getServiceInterface';
import { Watchable } from './Watchable';
export declare class GetServiceInterfaces<Mapped = ServiceInterfaceFilled[]> extends Watchable<ServiceInterfaceFilled[], Mapped> {
readonly opts: {
packageId?: string;
};
protected readonly label = "GetServiceInterfaces";
constructor(effects: Effects, opts: {
packageId?: string;
}, options?: {
map?: (value: ServiceInterfaceFilled[]) => Mapped;
eq?: (a: Mapped, b: Mapped) => boolean;
});
protected fetch(callback?: () => void): Promise<ServiceInterfaceFilled[]>;
}
export declare function getOwnServiceInterfaces(effects: Effects): GetServiceInterfaces;
export declare function getOwnServiceInterfaces<Mapped>(effects: Effects, map: (interfaces: ServiceInterfaceFilled[]) => Mapped, eq?: (a: Mapped, b: Mapped) => boolean): GetServiceInterfaces<Mapped>;
export declare function getServiceInterfaces(effects: Effects, opts: {
packageId: PackageId;
}): GetServiceInterfaces;
export declare function getServiceInterfaces<Mapped>(effects: Effects, opts: {
packageId: PackageId;
}, map: (interfaces: ServiceInterfaceFilled[]) => Mapped, eq?: (a: Mapped, b: Mapped) => boolean): GetServiceInterfaces<Mapped>;