Files
DefinitelyTyped/types/nodegit/ref-spec.d.ts
scottxu d9df51e345 🤖 Merge PR #58075 nodegit: Added Refspec.parse and Refspec#string methods. by @iamscottxu
* nodegit: Added methods.

Added methods to nodegit types corresponding to documentation
https://www.nodegit.org/api/refspec/#parse

* nodegit: Added `Refspec` tests

* nodegit: Fixed error

Signed-off-by: scottxu <scottxu@scottxublog.com>
2022-01-11 23:54:07 -08:00

11 lines
282 B
TypeScript

export class Refspec {
static parse(input: string, is_fetch: number): Promise<Refspec>;
direction(): number;
dst(): string;
dstMatches(refname: string): number;
force(): number;
src(): string;
srcMatches(refname: string): number;
string(): string;
}