UNPKG

@naturalcycles/nodejs-lib

Version:
16 lines (15 loc) 423 B
import type { ValuesOf } from '@naturalcycles/js-lib/types'; /** * @example * * const {a, b} = requreEnvKeys(['a', 'b']) * * Will throw if any of the passed keys is not defined. */ export declare function requireEnvKeys<T extends readonly string[]>(...keys: T): { [k in ValuesOf<T>]: string; }; /** * @deprecated use fs2.requireFileToExist */ export declare function requireFileToExist(filePath: string): void;