vite-esbuild-typescript-checker
Version:
* Speeds up [TypeScript](https://github.com/Microsoft/TypeScript) type checking * Supports [Vue Single File Component](https://vuejs.org/v2/guide/single-file-components.html) * Displays nice error messages with the [code frame](https://babeljs.io/docs/en/
25 lines (24 loc) • 929 B
TypeScript
import { Worker } from 'worker_threads';
import { FilesChange, TypescriptWorkerOptions } from './types';
import { ErrorPayload, WebSocketServer } from 'vite';
import { IssueCustom } from './functions.js';
export declare class Helper {
changedFiles: Array<string>;
deletedFiles: Array<string>;
startTime: number;
worker: Worker;
options: TypescriptWorkerOptions;
timeout: NodeJS.Timeout | undefined;
socket: WebSocketServer | undefined;
constructor(workerData: TypescriptWorkerOptions);
workerStart(ws?: WebSocketServer): void;
getFilesChange(): FilesChange;
clearFiles(): void;
addFile: (file: string) => void;
deleteFile: (file: string) => void;
changeFiles(): Promise<void>;
getPayloadError(issues: IssueCustom[]): ErrorPayload;
}
export declare function issueToViteError(issue: IssueCustom): ErrorPayload['err'];
declare const _default: {};
export default _default;