mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
23 lines
772 B
TypeScript
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;
|
|
}
|