mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
Bug: 370734442 No-Presubmit: true Change-Id: I7021b801e5bacd4ed33643651a53b8db20ccf8b0 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5898986 Commit-Queue: Danil Somsikov <dsv@chromium.org> Reviewed-by: Simon Zünd <szuend@chromium.org>
25 lines
964 B
TypeScript
25 lines
964 B
TypeScript
import { CompilerOptions, Program, SourceFile } from "typescript";
|
|
import { LitAnalyzerConfig } from "../analyze/lit-analyzer-config.js";
|
|
export interface CompileResult {
|
|
program: Program;
|
|
files: SourceFile[];
|
|
pluginOptions?: LitAnalyzerConfig;
|
|
}
|
|
/**
|
|
* Compiles an array of file paths using typescript.
|
|
* @param filePaths
|
|
*/
|
|
export declare function compileTypescript(filePaths: string | string[]): CompileResult;
|
|
/**
|
|
* Returns compiler options to be used
|
|
*/
|
|
export declare function getCompilerOptions(): CompilerOptions;
|
|
/**
|
|
* Resolves "tsconfig.json" file and returns its CompilerOptions
|
|
*/
|
|
export declare function resolveTsConfigCompilerOptions(): CompilerOptions | undefined;
|
|
/**
|
|
* Resolves the nearest tsconfig.json and returns the configuration seed within the plugins section for "ts-lit-plugin"
|
|
*/
|
|
export declare function readLitAnalyzerConfigFromTsConfig(): Partial<LitAnalyzerConfig> | undefined;
|
|
//# sourceMappingURL=compile.d.ts.map
|