feat: refact certMgr and httpsServerMgr into TS

This commit is contained in:
砚然
2018-08-28 15:47:04 +08:00
parent 201447a19a
commit 5bf6a55323
8 changed files with 123 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
/// <reference path="../../typings/index.d.ts" />
declare interface ErrorResponse {
declare interface IErrorResponse {
statusCode: number;
header: OneLevelObjectType;
body: string;
@@ -201,7 +201,7 @@ function fetchRemoteResponse(
/*
* get error response for exception scenarios
*/
function getErrorResponse(error: NodeJS.ErrnoException, fullUrl: string): ErrorResponse {
function getErrorResponse(error: NodeJS.ErrnoException, fullUrl: string): IErrorResponse {
// default error response
const errorResponse = {
statusCode: 500,