1
- import * as errors from './typings/errors' ;
2
- import * as types from './typings/types' ;
3
- import * as resp from './typings/response' ;
4
- import * as simpleGit from './typings/simple-git' ;
1
+ import * as SimpleGitTypes from 'simple-git' ;
5
2
6
3
/**
7
4
* @deprecated
@@ -17,7 +14,7 @@ declare const simplegit: simplegit.SimpleGitExport;
17
14
declare namespace simplegit {
18
15
19
16
type SimpleGitExport = ( ( basePath ?: string ) => simplegit . SimpleGit ) & {
20
- CleanOptions : typeof types . CleanOptions
17
+ CleanOptions : typeof SimpleGitTypes . CleanOptions
21
18
} ;
22
19
23
20
/**
@@ -29,36 +26,36 @@ declare namespace simplegit {
29
26
*
30
27
* To upgrade, change all 'simple-git/promise' imports to just 'simple-git'
31
28
*/
32
- type SimpleGit = simpleGit . SimpleGit ;
29
+ type SimpleGit = SimpleGitTypes . SimpleGit ;
33
30
34
31
// errors
35
- type GitError = errors . GitError ;
36
- type GitConstructError = errors . GitConstructError ;
37
- type GitResponseError < T > = errors . GitResponseError < T > ;
38
- type TaskConfigurationError = errors . TaskConfigurationError ;
32
+ type GitError = SimpleGitTypes . GitError ;
33
+ type GitConstructError = SimpleGitTypes . GitConstructError ;
34
+ type GitResponseError < T > = SimpleGitTypes . GitResponseError < T > ;
35
+ type TaskConfigurationError = SimpleGitTypes . TaskConfigurationError ;
39
36
40
37
// responses
41
- type BranchSummary = resp . BranchSummary
42
- type CleanSummary = resp . CleanSummary ;
43
- type CleanMode = types . CleanMode ;
44
- type DiffResult = resp . DiffResult ;
45
- type FetchResult = resp . FetchResult ;
46
- type CommitResult = resp . CommitResult ;
47
- type MergeResult = resp . MergeResult ;
48
- type PullResult = resp . PullResult ;
49
- type StatusResult = resp . StatusResult ;
50
- type TagResult = resp . TagResult ;
38
+ type BranchSummary = SimpleGitTypes . BranchSummary
39
+ type CleanSummary = SimpleGitTypes . CleanSummary ;
40
+ type CleanMode = SimpleGitTypes . CleanMode ;
41
+ type DiffResult = SimpleGitTypes . DiffResult ;
42
+ type FetchResult = SimpleGitTypes . FetchResult ;
43
+ type CommitResult = SimpleGitTypes . CommitResult ;
44
+ type MergeResult = SimpleGitTypes . MergeResult ;
45
+ type PullResult = SimpleGitTypes . PullResult ;
46
+ type StatusResult = SimpleGitTypes . StatusResult ;
47
+ type TagResult = SimpleGitTypes . TagResult ;
51
48
52
49
// types
53
- type outputHandler = types . outputHandler
54
- type LogOptions < T = types . DefaultLogFields > = types . LogOptions < T > ;
55
- type Options = types . Options ;
50
+ type outputHandler = SimpleGitTypes . outputHandler
51
+ type LogOptions < T = SimpleGitTypes . DefaultLogFields > = SimpleGitTypes . LogOptions < T > ;
52
+ type Options = SimpleGitTypes . Options ;
56
53
57
54
// deprecated
58
55
/** @deprecated use MergeResult */
59
- type MergeSummary = resp . MergeSummary ;
56
+ type MergeSummary = SimpleGitTypes . MergeSummary ;
60
57
/** @deprecated use CommitResult */
61
- type CommitSummary = resp . CommitResult ;
58
+ type CommitSummary = SimpleGitTypes . CommitResult ;
62
59
}
63
60
64
61
/**
0 commit comments