screenshot-service/@types/src/container-pool.d.ts

24 lines
606 B
TypeScript
Raw Permalink Normal View History

2022-06-19 13:33:25 +02:00
/// <reference types="node" />
import { ChildProcessWithoutNullStreams } from "child_process";
export declare class Container {
callbacks: Array<() => void>;
ready: boolean;
id: string;
output: "";
bg_process: ChildProcessWithoutNullStreams;
constructor();
signalReady(): void;
onReady(callback: () => void): void;
waitReady(): Promise<void>;
close(): void;
closeSync(): void;
}
declare const _default: {
pool: Container[];
concurrency: number;
generateContainer(): void;
getContainer(): Container;
clear(): void;
};
export default _default;