aboutsummaryrefslogtreecommitdiff
path: root/node_modules/simple-git/src/lib/tasks/grep.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/simple-git/src/lib/tasks/grep.d.ts')
-rw-r--r--node_modules/simple-git/src/lib/tasks/grep.d.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/simple-git/src/lib/tasks/grep.d.ts b/node_modules/simple-git/src/lib/tasks/grep.d.ts
new file mode 100644
index 0000000..653159a
--- /dev/null
+++ b/node_modules/simple-git/src/lib/tasks/grep.d.ts
@@ -0,0 +1,12 @@
+import { SimpleGit } from '../../../typings';
+export interface GitGrepQuery extends Iterable<string> {
+ /** Adds one or more terms to be grouped as an "and" to any other terms */
+ and(...and: string[]): this;
+ /** Adds one or more search terms - git.grep will "or" this to other terms */
+ param(...param: string[]): this;
+}
+/**
+ * Creates a new builder for a `git.grep` query with optional params
+ */
+export declare function grepQueryBuilder(...params: string[]): GitGrepQuery;
+export default function (): Pick<SimpleGit, 'grep'>;