dependency-cruiser
Version:
Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
17 lines (15 loc) • 510 B
TypeScript
import { ParsedCommandLine } from "typescript";
/**
* Reads the file with name `pTSConfigFileName` and returns its parsed
* contents as an object
*
* Silently fails if a supported version of the typescript compiler isn't available
*
* @param pTSConfigFileName
* @return tsconfig as an object
* @throws {Error} when the tsconfig is invalid/ has errors
* @throws {TypeError} when the tsconfig is unreadable
*/
export default function extractTSConfig(
pTSConfigFileName: string
): ParsedCommandLine;