UNPKG

electron-webpack

Version:

> Because setting up `webpack` in the `electron` environment shouldn't be difficult.

8 lines (7 loc) 536 B
/// <reference types="node" /> import { Stats } from "fs-extra"; export declare function statOrNull(file: string): Promise<Stats | null>; export declare function orNullIfFileNotExist<T>(promise: Promise<T>): Promise<T | null>; export declare function orIfFileNotExist<T>(promise: Promise<T>, fallbackValue: T): Promise<T>; export declare function getFirstExistingFile(names: Array<string>, rootDir: string | null): Promise<string | null>; export declare function getFreePort(defaultHost: string, defaultPort: number): Promise<unknown>;