dev-classes
Version:
<h3 align="center">SocketApi</h3>
29 lines (28 loc) • 876 B
TypeScript
export interface ControlAction {
stop(status?: boolean): void;
getIsActiveEvent(): boolean;
}
interface StartActionEveryConfigI {
interval: number;
cutoffTime?: number;
countAction?: number;
watchIdInterval?(id: number | null): void;
controlAction?(control: ControlAction): void;
}
interface OneOfPromiseReject {
status: boolean;
msg: string;
}
export interface DelaysPromiseProps {
startActionEvery: (cb: () => boolean, config: StartActionEveryConfigI) => Promise<{
status: boolean;
msg: string;
}>;
oneOf: (watchPromise: () => Promise<any>, potentialCaseCB: () => void, config: {
second: number;
}) => void;
oneOfPromise: (watchPromise: () => Promise<any>, cbPotentialReject: (p: OneOfPromiseReject) => OneOfPromiseReject, config: {
second: number;
}) => Promise<any>;
}
export {};