Files
DefinitelyTyped/types/nodegit/lib-git2.d.ts
Nicolas Le Cam 68c911e5b2 🤖 Merge PR #58794 nodegit/repository.d.ts: Fix wrong signature on cleanup method and add missing promisified methods by @KuSh
* nodegit/repository.d.ts: Remove unused imports

* nodegit/repository.d.ts: Fix wrong signature on Repository.cleanup()

* nodegit/repository.d.ts: Add missing promisified methods

* nodegit: Add Repository.cleanup() test

* nodegit: format with prettier

Co-authored-by: Nicolas Le Cam <nicolas.lecam@digital4better.com>
2022-02-16 01:43:31 -08:00

26 lines
703 B
TypeScript

export namespace Libgit2 {
const enum OPT {
GET_MWINDOW_SIZE = 0,
SET_MWINDOW_SIZE = 1,
GET_MWINDOW_MAPPED_LIMIT = 2,
SET_MWINDOW_MAPPED_LIMIT = 3,
GET_SEARCH_PATH = 4,
SET_SEARCH_PATH = 5,
SET_CACHE_OBJECT_LIMIT = 6,
SET_CACHE_MAX_SIZE = 7,
ENABLE_CACHING = 8,
GET_CACHED_MEMORY = 9,
GET_TEMPLATE_PATH = 10,
SET_TEMPLATE_PATH = 11,
SET_SSL_CERT_LOCATIONS = 12,
}
}
export class Libgit2 {
static features(): number;
static init(): number;
static opts(option: number): number;
static shutdown(): number;
static version(major: number, minor: number, rev: number): void;
}