UNPKG

1.21 kBTypeScriptView Raw
1import * as errors from './typings/errors';
2import * as types from './typings/types';
3import * as resp from './typings/response';
4import * as simpleGit from './typings/simple-git';
5
6declare const simplegit: simplegit.SimpleGitExport;
7
8declare namespace simplegit {
9
10 type SimpleGitExport = ((basePath?: string) => simplegit.SimpleGit) & {
11 CleanOptions: typeof types.CleanOptions
12 };
13
14 type SimpleGit = simpleGit.SimpleGit;
15
16 // errors
17 type GitError = errors.GitError;
18 type GitResponseError<T> = errors.GitResponseError<T>;
19 type TaskConfigurationError = errors.TaskConfigurationError;
20
21 // responses
22 type BranchSummary = resp.BranchSummary
23 type CleanSummary = resp.CleanSummary;
24 type CleanMode = types.CleanMode;
25 type DiffResult = resp.DiffResult;
26 type FetchResult = resp.FetchResult;
27 type CommitSummary = resp.CommitSummary;
28 type MergeSummary = resp.MergeSummary;
29 type PullResult = resp.PullResult;
30 type StatusResult = resp.StatusResult;
31 type TagResult = resp.TagResult;
32
33 // types
34 type outputHandler = types.outputHandler
35 type LogOptions<T = types.DefaultLogFields> = types.LogOptions<T>;
36 type Options = types.Options;
37
38}
39
40export = simplegit;
41
\No newline at end of file