UNPKG

709 BTypeScriptView Raw
1declare type UnPromisify<T> = T extends Promise<infer U> ? U : T;
2declare type Patch = UnPromisify<ReturnType<typeof getAvailablePatches>>['availablePatches'][0];
3export declare function applyPatchFile(baseDir: string, patch: Patch, reverse?: boolean): any;
4export declare function applyPatches(rootDirectory: string, reverse?: boolean): Promise<void>;
5export declare function getAvailablePatches(): Promise<{
6 baseDir: string;
7 availablePatches: {
8 fileName: string;
9 details: {
10 version: string;
11 name: string;
12 pathSpecifier: string;
13 humanReadablePathSpecifier: string;
14 packageNames: string[];
15 };
16 }[];
17}>;
18export {};