IncrementalCheckerInterface.d.ts 983 B

1234567891011121314151617181920212223
  1. import * as ts from 'typescript';
  2. import { CancellationToken } from './CancellationToken';
  3. import { ResolveTypeReferenceDirective, ResolveModuleName } from './resolution';
  4. import { createEslinter } from './createEslinter';
  5. import { Issue } from './issue';
  6. import { VueOptions } from './types/vue-options';
  7. export interface IncrementalCheckerInterface {
  8. nextIteration(): void;
  9. hasEsLinter(): boolean;
  10. getTypeScriptIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
  11. getEsLintIssues(cancellationToken: CancellationToken): Promise<Issue[]>;
  12. }
  13. export interface IncrementalCheckerParams {
  14. typescript: typeof ts;
  15. context: string;
  16. programConfigFile: string;
  17. compilerOptions: ts.CompilerOptions;
  18. eslinter: ReturnType<typeof createEslinter> | undefined;
  19. checkSyntacticErrors: boolean;
  20. resolveModuleName: ResolveModuleName | undefined;
  21. resolveTypeReferenceDirective: ResolveTypeReferenceDirective | undefined;
  22. vue: VueOptions;
  23. }