katoikia-app/web-ui/web-react/node_modules/fork-ts-checker-webpack-plugin/lib/CancellationToken.d.ts

23 lines
772 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as ts from 'typescript';
export interface CancellationTokenData {
isCancelled: boolean;
cancellationFileName: string;
}
export declare class CancellationToken {
private typescript;
private isCancelled;
private cancellationFileName;
private lastCancellationCheckTime;
constructor(typescript: typeof ts, cancellationFileName?: string, isCancelled?: boolean);
static createFromJSON(typescript: typeof ts, json: CancellationTokenData): CancellationToken;
toJSON(): {
cancellationFileName: string;
isCancelled: boolean;
};
getCancellationFilePath(): string;
isCancellationRequested(): boolean;
throwIfCancellationRequested(): void;
requestCancellation(): void;
cleanupCancellation(): void;
}