From 7df471b69d75157cc4eb2948ce5d75053306a432 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Thu, 18 Oct 2018 14:10:32 +0300 Subject: [PATCH] chore: fix cli ts compiling --- cli/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/index.ts b/cli/index.ts index 100ca856..1ae48241 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -5,7 +5,7 @@ import { renderToString } from 'react-dom/server'; import { ServerStyleSheet } from 'styled-components'; import { compile } from 'handlebars'; -import { createServer, ServerRequest, ServerResponse } from 'http'; +import { createServer, IncomingMessage, ServerResponse } from 'http'; import { dirname, join } from 'path'; import * as zlib from 'zlib'; @@ -258,7 +258,7 @@ async function getPageHTML( // credits: https://stackoverflow.com/a/9238214/1749888 function respondWithGzip( contents: string | ReadStream, - request: ServerRequest, + request: IncomingMessage, response: ServerResponse, headers = {}, ) {