diff --git a/types/nodegit/cert.d.ts b/types/nodegit/cert.d.ts new file mode 100644 index 0000000000..f910453700 --- /dev/null +++ b/types/nodegit/cert.d.ts @@ -0,0 +1,17 @@ +export namespace Cert { + enum TYPE { + NONE = 0, + X509 = 1, + HOSTKEY_LIBSSH2 = 2, + STRARRAY = 3 + } + + enum SSH { + MD5 = 1, + SHA1 = 2 + } +} + +export class Cert { + certType: number; +} diff --git a/types/nodegit/index.d.ts b/types/nodegit/index.d.ts index 860d1e9c2f..7b485e2980 100644 --- a/types/nodegit/index.d.ts +++ b/types/nodegit/index.d.ts @@ -11,6 +11,7 @@ export { Blame } from './blame'; export { Blob } from './blob'; export { Branch } from './branch'; export { Buf } from './buf'; +export { Cert } from './cert'; export { CheckoutOptions } from './checkout-options'; export { Checkout } from './checkout'; export { CloneOptions } from './clone-options'; diff --git a/types/nodegit/tsconfig.json b/types/nodegit/tsconfig.json index 39bb95c2fc..366b54206a 100644 --- a/types/nodegit/tsconfig.json +++ b/types/nodegit/tsconfig.json @@ -24,6 +24,7 @@ "blob.d.ts", "branch.d.ts", "buf.d.ts", + "cert.d.ts", "checkout-options.d.ts", "checkout.d.ts", "clone-options.d.ts",