@codechecks/client
Version:
Open source platform for code review automation
8 lines (7 loc) • 476 B
TypeScript
import { Opaque, Dictionary } from "ts-essentials";
export declare function runOrCatchError<T>(fn: () => T): T | undefined;
export declare function getRequiredEnv(name: string): string;
export declare function normalizePath(absoluteOrRelativePath: string): Path;
export declare type Path = Opaque<string, "PATH">;
export declare function maskSecrets(output: string, env: Dictionary<string | undefined>): string;
export declare function ensureAbsolutePath(path: string): void;