1 | import { TsModule } from '../module';
|
2 | export declare const tspHeaderBlockStart = "/// tsp-module:";
|
3 | export declare const tspHeaderBlockStop = "/// :tsp-module";
|
4 | export declare const currentPatchDetailVersion = "0.1.0";
|
5 | export 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 | }
|
14 | export declare namespace PatchDetail {
|
15 | interface PatchEntry {
|
16 | library: string;
|
17 | version: string;
|
18 | patchName?: string;
|
19 | hash?: string;
|
20 | blocksCache?: boolean;
|
21 | }
|
22 | }
|
23 | export 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 | }
|