Advertisement
Guest User

lib/index.d.ts

a guest
May 10th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { NormalizedMessage } from './NormalizedMessage';
  2. import { ForkTsCheckerHooks } from './hooks';
  3. declare type Formatter = (message: NormalizedMessage, useColors: boolean) => string;
  4. interface Logger {
  5.     error(message?: any): void;
  6.     warn(message?: any): void;
  7.     info(message?: any): void;
  8. }
  9. interface Options {
  10.     typescript: string;
  11.     tsconfig: string;
  12.     compilerOptions: object;
  13.     tslint: string | true;
  14.     tslintAutoFix: boolean;
  15.     watch: string | string[];
  16.     async: boolean;
  17.     ignoreDiagnostics: number[];
  18.     ignoreLints: string[];
  19.     ignoreLintWarnings: boolean;
  20.     reportFiles: string[];
  21.     colors: boolean;
  22.     logger: Logger;
  23.     formatter: 'default' | 'codeframe' | Formatter;
  24.     formatterOptions: any;
  25.     silent: boolean;
  26.     checkSyntacticErrors: boolean;
  27.     memoryLimit: number;
  28.     workers: number;
  29.     vue: boolean;
  30.     useTypescriptIncrementalApi: boolean;
  31.     measureCompilationTime: boolean;
  32.     resolveModuleNameModule: string;
  33.     resolveTypeReferenceDirectiveModule: string;
  34. }
  35. /**
  36.  * ForkTsCheckerWebpackPlugin
  37.  * Runs typescript type checker and linter (tslint) on separate process.
  38.  * This speed-ups build a lot.
  39.  *
  40.  * Options description in README.md
  41.  */
  42. declare class ForkTsCheckerWebpackPlugin {
  43.     static readonly DEFAULT_MEMORY_LIMIT = 2048;
  44.     static readonly ONE_CPU = 1;
  45.     static readonly ALL_CPUS: number;
  46.     static readonly ONE_CPU_FREE: number;
  47.     static readonly TWO_CPUS_FREE: number;
  48.     static getCompilerHooks(compiler: any): Record<ForkTsCheckerHooks, any>;
  49.     readonly options: Partial<Options>;
  50.     private tsconfig;
  51.     private compilerOptions;
  52.     private tslint?;
  53.     private tslintAutoFix;
  54.     private watch;
  55.     private ignoreDiagnostics;
  56.     private ignoreLints;
  57.     private ignoreLintWarnings;
  58.     private reportFiles;
  59.     private logger;
  60.     private silent;
  61.     private async;
  62.     private checkSyntacticErrors;
  63.     private workersNumber;
  64.     private memoryLimit;
  65.     private useColors;
  66.     private colors;
  67.     private formatter;
  68.     private useTypescriptIncrementalApi;
  69.     private resolveModuleNameModule;
  70.     private resolveTypeReferenceDirectiveModule;
  71.     private tsconfigPath?;
  72.     private tslintPath?;
  73.     private watchPaths;
  74.     private compiler;
  75.     private started?;
  76.     private elapsed?;
  77.     private cancellationToken?;
  78.     private isWatching;
  79.     private checkDone;
  80.     private compilationDone;
  81.     private diagnostics;
  82.     private lints;
  83.     private emitCallback;
  84.     private doneCallback;
  85.     private typescriptPath;
  86.     private typescript;
  87.     private typescriptVersion;
  88.     private tslintVersion;
  89.     private service?;
  90.     private serviceRpc?;
  91.     private vue;
  92.     private measureTime;
  93.     private performance;
  94.     private startAt;
  95.     private nodeArgs;
  96.     constructor(options?: Partial<Options>);
  97.     private validateVersions;
  98.     private static createFormatter;
  99.     apply(compiler: any): void;
  100.     private computeContextPath;
  101.     private pluginStart;
  102.     private pluginStop;
  103.     private pluginCompile;
  104.     private pluginEmit;
  105.     private pluginDone;
  106.     private spawnService;
  107.     private killService;
  108.     private handleServiceMessage;
  109.     private handleServiceExit;
  110.     private createEmitCallback;
  111.     private createNoopEmitCallback;
  112.     private printLoggerMessage;
  113.     private createDoneCallback;
  114. }
  115. export = ForkTsCheckerWebpackPlugin;
  116. declare namespace ForkTsCheckerWebpackPlugin { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement