Fix StartOS 0.4 TypeScript packaging to match SDK API
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import * as T from '../types';
|
||||
import { AddressReceipt } from './AddressReceipt';
|
||||
declare const UpdateServiceInterfacesProof: unique symbol;
|
||||
export type UpdateServiceInterfacesReceipt = {
|
||||
[UpdateServiceInterfacesProof]: never;
|
||||
};
|
||||
export type ServiceInterfacesReceipt = Array<T.AddressInfo[] & AddressReceipt>;
|
||||
export type SetServiceInterfaces<Output extends ServiceInterfacesReceipt> = (opts: {
|
||||
effects: T.Effects;
|
||||
}) => Promise<Output>;
|
||||
export type UpdateServiceInterfaces = (effects: T.Effects) => Promise<null>;
|
||||
export type SetupServiceInterfaces = <Output extends ServiceInterfacesReceipt>(fn: SetServiceInterfaces<Output>) => UpdateServiceInterfaces;
|
||||
export declare const NO_INTERFACE_CHANGES: UpdateServiceInterfacesReceipt;
|
||||
export declare const setupServiceInterfaces: SetupServiceInterfaces;
|
||||
export {};
|
||||
Reference in New Issue
Block a user