use interface for Cert constructor
This commit is contained in:
parent
b2482b3cfd
commit
ae9865749a
15
dist/index.d.ts
vendored
15
dist/index.d.ts
vendored
@ -1,5 +1,12 @@
|
|||||||
/// <reference types="q" />
|
/// <reference types="q" />
|
||||||
import * as plugins from "./cert.plugins";
|
import * as plugins from "./cert.plugins";
|
||||||
|
export interface CertConstructorOptions {
|
||||||
|
cfEmail: string;
|
||||||
|
cfKey: string;
|
||||||
|
sslDir: string;
|
||||||
|
gitOriginRepo?: string;
|
||||||
|
testMode?: boolean;
|
||||||
|
}
|
||||||
export declare class Cert {
|
export declare class Cert {
|
||||||
private _cfEmail;
|
private _cfEmail;
|
||||||
private _cfKey;
|
private _cfKey;
|
||||||
@ -8,13 +15,7 @@ export declare class Cert {
|
|||||||
private _testMode;
|
private _testMode;
|
||||||
certificatesPresent: Certificate[];
|
certificatesPresent: Certificate[];
|
||||||
certificatesValid: Certificate[];
|
certificatesValid: Certificate[];
|
||||||
constructor(optionsArg: {
|
constructor(optionsArg: CertConstructorOptions);
|
||||||
cfEmail: string;
|
|
||||||
cfKey: string;
|
|
||||||
sslDir: string;
|
|
||||||
gitOriginRepo?: string;
|
|
||||||
testMode?: boolean;
|
|
||||||
});
|
|
||||||
sslGitOriginPull: () => void;
|
sslGitOriginPull: () => void;
|
||||||
sslGitOriginAddCommitPush: () => void;
|
sslGitOriginAddCommitPush: () => void;
|
||||||
getDomainCert(domainNameArg: string, optionsArg?: {
|
getDomainCert(domainNameArg: string, optionsArg?: {
|
||||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
File diff suppressed because one or more lines are too long
16
ts/index.ts
16
ts/index.ts
@ -1,6 +1,14 @@
|
|||||||
import * as plugins from "./cert.plugins";
|
import * as plugins from "./cert.plugins";
|
||||||
import * as paths from "./cert.paths";
|
import * as paths from "./cert.paths";
|
||||||
|
|
||||||
|
export interface CertConstructorOptions {
|
||||||
|
cfEmail: string,
|
||||||
|
cfKey: string,
|
||||||
|
sslDir: string,
|
||||||
|
gitOriginRepo?: string,
|
||||||
|
testMode?: boolean
|
||||||
|
};
|
||||||
|
|
||||||
export class Cert {
|
export class Cert {
|
||||||
private _cfEmail: string;
|
private _cfEmail: string;
|
||||||
private _cfKey: string;
|
private _cfKey: string;
|
||||||
@ -9,13 +17,7 @@ export class Cert {
|
|||||||
private _testMode: boolean
|
private _testMode: boolean
|
||||||
certificatesPresent: Certificate[];
|
certificatesPresent: Certificate[];
|
||||||
certificatesValid: Certificate[];
|
certificatesValid: Certificate[];
|
||||||
constructor(optionsArg: {
|
constructor(optionsArg:CertConstructorOptions) {
|
||||||
cfEmail: string,
|
|
||||||
cfKey: string,
|
|
||||||
sslDir: string,
|
|
||||||
gitOriginRepo?: string,
|
|
||||||
testMode?: boolean
|
|
||||||
}) {
|
|
||||||
this._cfEmail = optionsArg.cfEmail;
|
this._cfEmail = optionsArg.cfEmail;
|
||||||
this._cfKey = optionsArg.cfKey;
|
this._cfKey = optionsArg.cfKey;
|
||||||
this._sslDir = optionsArg.sslDir;
|
this._sslDir = optionsArg.sslDir;
|
||||||
|
Loading…
Reference in New Issue
Block a user