1.0.4 • Published 7 months ago

@types/create-cert v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/create-cert

Summary

This package contains type definitions for create-cert (https://github.com/lukechilds/create-cert).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/create-cert.

index.d.ts

// Type definitions for create-cert 1.0
// Project: https://github.com/lukechilds/create-cert
// Definitions by: Chris Midgley <https://github.com/midgleyc>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.4

import { CertificateCreationOptions } from 'pem';

declare function createCert(opts?: createCert.Options | string): Promise<createCert.CertificateData>;

export = createCert;

declare namespace createCert {
    interface Options extends CertificateCreationOptions {
        days?: number | undefined;
        commonName?: string | undefined;
    }

    interface CertificateData {
        key: string;
        cert: string;
        caCert: string;
    }
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:19 GMT
  • Dependencies: @types/pem
  • Global values: none

Credits

These definitions were written by Chris Midgley.