You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
772 B
22 lines
772 B
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; |
|
}
|
|
|