Archived
1
0

First commit

This commit is contained in:
Sean Edmunds
2021-12-13 17:00:40 -06:00
commit 0584430b5c
36617 changed files with 4676695 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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;
}