From 59a09357a6092f530da4d54ad69c8ccae9695cdc Mon Sep 17 00:00:00 2001 From: mottox2 Date: Sat, 21 Mar 2020 04:26:17 +0900 Subject: [PATCH] Fix type --- packages/gatsby/src/commands/develop.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/gatsby/src/commands/develop.ts b/packages/gatsby/src/commands/develop.ts index 137181f71eafd..d2095619a0062 100644 --- a/packages/gatsby/src/commands/develop.ts +++ b/packages/gatsby/src/commands/develop.ts @@ -58,7 +58,7 @@ import { showFeedbackRequest, } from "../utils/feedback" -import { BuildHTMLStage, IProgram } from "./types" +import { BuildHTMLStage, IProgram, ICert } from "./types" // checks if a string is a valid ip const REGEX_IP = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])$/ @@ -401,12 +401,12 @@ module.exports = async (program: IProgram): Promise => { ) } - program.ssl = await getSslCert({ + program.ssl = (await getSslCert({ name: sslHost, certFile: program[`cert-file`], keyFile: program[`key-file`], directory: program.directory, - }) + })) as ICert } // Start bootstrap process.