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.