UNPKG

1.62 kBTypeScriptView Raw
1declare function addSubmodule(name: string, url: string): void;
2declare function removeSubmodule(name: string): void;
3declare function updateSubmodule(name: string): void;
4declare function resetSubmodule(name: string): void;
5declare function fetchSubmodule(name: string): void;
6declare function checkoutSubmodule(name: string, ref: string): void;
7declare function isSubmoduleUpdated(name: string): boolean;
8declare function resolveSubmodulePath(name: string, relativePath?: string): string;
9declare function listSubmodules(): any;
10declare function listSubmodulesUrls(whiteList?: any[]): any;
11declare function isSubmodule(): boolean;
12declare function getRemoteSubmoduleName(remote: any): any;
13declare function getLocalSubmoduleName(givenPath: any): any;
14declare function getSubmoduleCwd(name: any): string;
15declare function getSubmodulesFSNodes({ whitelist, blacklist, revision, cwd }?: {
16 whitelist?: string[];
17 blacklist?: string[];
18 revision?: string;
19 cwd?: string;
20}): any;
21export declare const Submodule: {
22 add: typeof addSubmodule;
23 remove: typeof removeSubmodule;
24 reset: typeof resetSubmodule;
25 fetch: typeof fetchSubmodule;
26 update: typeof updateSubmodule;
27 checkout: typeof checkoutSubmodule;
28 isUpdated: typeof isSubmoduleUpdated;
29 resolvePath: typeof resolveSubmodulePath;
30 list: typeof listSubmodules;
31 urls: typeof listSubmodulesUrls;
32 isOne: typeof isSubmodule;
33 getRemoteName: typeof getRemoteSubmoduleName;
34 getLocalName: typeof getLocalSubmoduleName;
35 getCwd: typeof getSubmoduleCwd;
36 getFSNodes: typeof getSubmodulesFSNodes;
37};
38export {};