@test-org122/utils
Version:
Utilities used by Hypernet Labs packages
15 lines • 624 B
TypeScript
import { ResultAsync } from "neverthrow";
import Postmate from "postmate";
import { PostmateError } from "./errors/PostmateError";
export interface IIFrameCallData<T> {
callId: number;
data: T;
}
export declare abstract class ChildProxy {
protected parent: Postmate.ChildAPI | undefined;
protected abstract getModel(): Postmate.Model;
protected abstract onModelActivated(parent: Postmate.ChildAPI): void;
activateModel(): ResultAsync<Postmate.ChildAPI, PostmateError>;
protected returnForModel<T, E>(func: () => ResultAsync<T, E>, callId: number): void;
}
//# sourceMappingURL=ChildProxy.d.ts.map