UNPKG

543 BTypeScriptView Raw
1import { SimpleGit } from '../../../typings';
2export interface GitGrepQuery extends Iterable<string> {
3 /** Adds one or more terms to be grouped as an "and" to any other terms */
4 and(...and: string[]): this;
5 /** Adds one or more search terms - git.grep will "or" this to other terms */
6 param(...param: string[]): this;
7}
8/**
9 * Creates a new builder for a `git.grep` query with optional params
10 */
11export declare function grepQueryBuilder(...params: string[]): GitGrepQuery;
12export default function (): Pick<SimpleGit, 'grep'>;