|
| 1 | +// @beta |
| 2 | +class ApiExtractorRunner extends RushStackCompilerBase { |
| 3 | + constructor(extractorConfig: IExtractorConfig, extractorOptions: IExtractorOptions, rootPath: string, terminalProvider: ITerminalProvider); |
| 4 | + // (undocumented) |
| 5 | + invoke(): Promise<void>; |
| 6 | +} |
| 7 | + |
| 8 | +// @public (undocumented) |
| 9 | +interface ITslintRunnerConfig { |
| 10 | + displayAsError?: boolean; |
| 11 | + // (undocumented) |
| 12 | + fileError: WriteFileIssueFunction; |
| 13 | + // (undocumented) |
| 14 | + fileWarning: WriteFileIssueFunction; |
| 15 | +} |
| 16 | + |
| 17 | +// @beta (undocumented) |
| 18 | +class RushStackCompilerBase<TOptions = {}> { |
| 19 | + constructor(taskOptions: TOptions, rootPath: string, terminalProvider: ITerminalProvider); |
| 20 | + // WARNING: The type "StandardBuildFolders" needs to be exported by the package (e.g. added to index.ts) |
| 21 | + // (undocumented) |
| 22 | + protected _standardBuildFolders: StandardBuildFolders; |
| 23 | + // (undocumented) |
| 24 | + protected _taskOptions: TOptions; |
| 25 | + // (undocumented) |
| 26 | + protected _terminal: Terminal; |
| 27 | +} |
| 28 | + |
| 29 | +// @alpha |
| 30 | +class ToolPackages { |
| 31 | + // (undocumented) |
| 32 | + static apiExtractor: typeof apiExtractor; |
| 33 | + // (undocumented) |
| 34 | + static tslint: typeof tslint; |
| 35 | + // (undocumented) |
| 36 | + static typescript: typeof typescript; |
| 37 | +} |
| 38 | + |
| 39 | +// @beta (undocumented) |
| 40 | +class ToolPaths { |
| 41 | + // (undocumented) |
| 42 | + static readonly tslintPackageJson: IPackageJson; |
| 43 | + // (undocumented) |
| 44 | + static readonly tslintPackagePath: string; |
| 45 | + // (undocumented) |
| 46 | + static readonly typescriptPackageJson: IPackageJson; |
| 47 | + // (undocumented) |
| 48 | + static readonly typescriptPackagePath: string; |
| 49 | +} |
| 50 | + |
| 51 | +// @beta (undocumented) |
| 52 | +class TslintRunner extends RushStackCompilerBase<ITslintRunnerConfig> { |
| 53 | + constructor(taskOptions: ITslintRunnerConfig, rootPath: string, terminalProvider: ITerminalProvider); |
| 54 | + // (undocumented) |
| 55 | + invoke(): Promise<void>; |
| 56 | +} |
| 57 | + |
| 58 | +// @beta (undocumented) |
| 59 | +class TypescriptCompiler extends RushStackCompilerBase { |
| 60 | + constructor(rootPath: string, terminalProvider: ITerminalProvider); |
| 61 | + // (undocumented) |
| 62 | + invoke(): Promise<void>; |
| 63 | +} |
| 64 | + |
| 65 | +// WARNING: Unsupported export: WriteFileIssueFunction |
0 commit comments