UNPKG

@redhat-cloud-services/hcc-pf-mcp

Version:
12 lines 594 B
/** * the bundler can some parameters form dynamic imports which makes it impossible to import json files correctly * WHen using const a = await import('path/to/file.json', { with: { type: 'json' } }); * the resulted JS bundle is stripped to * const a = await import('path/to/file.json'); * * This file is to workaround that issue by reading the file content directly * */ import { readFile } from 'node:fs'; export declare const readFileAsync: typeof readFile.__promisify__; export declare const readJsonFile: <T>(filePath: string) => Promise<T>; //# sourceMappingURL=readFile.d.ts.map