@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
16 lines (15 loc) • 423 B
TypeScript
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;