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

23 lines
772 B
TypeScript

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;
}