gauge-ts
Version:
Typescript runner for Gauge
22 lines (21 loc) • 1.06 kB
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import type { ParameterParser } from "../processors/params/ParameterParser";
export type CommonFunction<T = unknown> = (...args: unknown[]) => T;
export type CommonAsyncFunction<T = unknown> = (...args: unknown[]) => Promise<T>;
export declare class Util {
static importFile(file: string): Promise<any>;
static writeFile(filePath: string, content: string): void;
static exists(filePath: string): boolean;
static readFile(file: string): string;
static readFileBuffer(file: string): ArrayBufferLike;
static spawn(command: string, args: string[]): import("child_process").SpawnSyncReturns<Buffer>;
static isCustomParameterParser(object: any): object is ParameterParser;
static getListOfFiles(): string[];
static isTSFile(file: string): boolean;
private static walkSync;
static collectFilesIn(dir: string): string[];
static getImplDirs(): Array<string>;
static getNewTSFileName(dir: string): string;
static getUniqueScreenshotFileName(): string;
}