UNPKG

1.16 kBTypeScriptView Raw
1import { TsModule } from '../module';
2export declare const tspHeaderBlockStart = "/// tsp-module:";
3export declare const tspHeaderBlockStop = "/// :tsp-module";
4export declare const currentPatchDetailVersion = "0.1.0";
5export interface PatchDetail {
6 tsVersion: string;
7 tspVersion: string;
8 patchDetailVersion: string;
9 moduleName: TsModule.Name;
10 originalHash: string;
11 hash: string;
12 patches: PatchDetail.PatchEntry[];
13}
14export declare namespace PatchDetail {
15 interface PatchEntry {
16 library: string;
17 version: string;
18 patchName?: string;
19 hash?: string;
20 blocksCache?: boolean;
21 }
22}
23export declare class PatchDetail {
24 get isOutdated(): boolean;
25 toHeader(): string;
26 static fromHeader(header: string | string[]): PatchDetail | undefined;
27 static fromModule(tsModule: TsModule, patchedContent: string, patches?: PatchDetail.PatchEntry[]): PatchDetail & {
28 tsVersion: string;
29 tspVersion: any;
30 patchDetailVersion: string;
31 moduleName: string;
32 originalHash: string;
33 hash: string;
34 patches: PatchDetail.PatchEntry[];
35 };
36}