nope-js-browser
Version:
NoPE Runtime for the Browser. For nodejs please use nope-js-node
20 lines (19 loc) • 830 B
TypeScript
import { INopePromise, INopeRpcManager, ValidCallOptions } from "../types";
export interface ValidCallOptionsWithFunction extends ValidCallOptions {
callbackOptions?: ({
idx: number;
timeToLifeAfterCall: number;
calledOnce: boolean;
} & Omit<ValidCallOptionsWithFunction, "calledOnce">)[];
timeToLifeAfterCall?: number;
calledOnce?: number[];
}
export interface INopeRpcManagerWithCallback extends INopeRpcManager {
performCall<T>(serviceName: string | string[], params: unknown[], options?: ValidCallOptionsWithFunction | ValidCallOptionsWithFunction[]): INopePromise<T>;
/**
* Flag to keep callbacks open. Defaults to 1 Hour.
* The Value is given in *ms*
*/
defaultKeepAlive: number;
}
export declare const extend: import("./plugin").Plugin;