parse-tsconfig.d.ts 658 B

123456789101112131415161718
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.dev/license
  7. */
  8. import * as ts from 'typescript';
  9. import { FileSystem, WorkspacePath } from '../file-system';
  10. /** Class capturing a tsconfig parse error. */
  11. export declare class TsconfigParseError extends Error {
  12. }
  13. /**
  14. * Attempts to parse the specified tsconfig file.
  15. *
  16. * @throws {TsconfigParseError} If the tsconfig could not be read or parsed.
  17. */
  18. export declare function parseTsconfigFile(tsconfigPath: WorkspacePath, fileSystem: FileSystem): ts.ParsedCommandLine;