DefinitelyTyped/types/socketcluster/fsutil.d.ts

12 lines
297 B
TypeScript

import { PathLike } from "fs";
export function fileExists(filePath: PathLike, callback: (exists: boolean) => void): void;
export function waitForFile(
filePath: PathLike,
checkInterval: number,
startTime: number,
maxWaitDuration: number,
timeoutErrorMessage?: string
): Promise<void>;