servicesHost.d.ts 1.2 KB

123456789101112131415161718
  1. import type * as typescript from 'typescript';
  2. import type * as webpack from 'webpack';
  3. import type { FilePathKey, LoaderOptions, ServiceHostWhichMayBeCacheable, SolutionBuilderWithWatchHost, TSInstance, WatchHost } from './interfaces';
  4. /**
  5. * Create the TypeScript language service
  6. */
  7. export declare function makeServicesHost(scriptRegex: RegExp, loader: webpack.LoaderContext<LoaderOptions>, instance: TSInstance, projectReferences?: ReadonlyArray<typescript.ProjectReference>): ServiceHostWhichMayBeCacheable;
  8. export declare function updateFileWithText(instance: TSInstance, key: FilePathKey, filePath: string, text: (nFilePath: string) => string): void;
  9. /**
  10. * Create the TypeScript Watch host
  11. */
  12. export declare function makeWatchHost(scriptRegex: RegExp, loader: webpack.LoaderContext<LoaderOptions>, instance: TSInstance, projectReferences?: ReadonlyArray<typescript.ProjectReference>): WatchHost;
  13. /**
  14. * Create the TypeScript Watch host
  15. */
  16. export declare function makeSolutionBuilderHost(scriptRegex: RegExp, loader: webpack.LoaderContext<LoaderOptions>, instance: TSInstance): SolutionBuilderWithWatchHost;
  17. export declare function getSolutionErrors(instance: TSInstance, context: string): webpack.WebpackError[];
  18. //# sourceMappingURL=servicesHost.d.ts.map