UNPKG

391 BTypeScriptView Raw
1import type { ValuesOf } from '@naturalcycles/js-lib';
2import 'dotenv/config';
3/**
4 * @example
5 *
6 * const {a, b} = requreEnvKeys(['a', 'b'])
7 *
8 * Will throw if any of the passed keys is not defined.
9 */
10export declare function requireEnvKeys<T extends readonly string[]>(...keys: T): {
11 [k in ValuesOf<T>]: string;
12};
13export declare function requireFileToExist(filePath: string): void;