@types/create-cert
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

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: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/pem

Credits

These definitions were written by Chris Midgley.

/@types/create-cert/

    Package Sidebar

    Install

    npm i @types/create-cert

    Weekly Downloads

    246

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    3.54 kB

    Total Files

    5

    Last publish

    Collaborators

    • types