mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-26 18:35:05 +00:00
fix(types): declare Git utility options
This commit is contained in:
1 file changed
+2
-2
Vendored
+2
-2
@@ -193,10 +193,10 @@ export interface CommandResult {
|
||||
export function runCommand(cmd: string, options?: ExecSyncOptions): CommandResult;
|
||||
|
||||
/** Check if the current directory is inside a git repository */
|
||||
export function isGitRepo(): boolean;
|
||||
export function isGitRepo(options?: ExecSyncOptions): boolean;
|
||||
|
||||
/**
|
||||
* Get git modified files (staged + unstaged), optionally filtered by regex patterns.
|
||||
* Invalid regex patterns are silently skipped.
|
||||
*/
|
||||
export function getGitModifiedFiles(patterns?: string[]): string[];
|
||||
export function getGitModifiedFiles(patterns?: string[], options?: ExecSyncOptions): string[];
|
||||
Reference in new issue
Block a user