chore: fix cli ts compiling

This commit is contained in:
Roman Hotsiy 2018-10-18 14:10:32 +03:00
parent ef520eacfa
commit 7df471b69d
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -5,7 +5,7 @@ import { renderToString } from 'react-dom/server';
import { ServerStyleSheet } from 'styled-components'; import { ServerStyleSheet } from 'styled-components';
import { compile } from 'handlebars'; import { compile } from 'handlebars';
import { createServer, ServerRequest, ServerResponse } from 'http'; import { createServer, IncomingMessage, ServerResponse } from 'http';
import { dirname, join } from 'path'; import { dirname, join } from 'path';
import * as zlib from 'zlib'; import * as zlib from 'zlib';
@ -258,7 +258,7 @@ async function getPageHTML(
// credits: https://stackoverflow.com/a/9238214/1749888 // credits: https://stackoverflow.com/a/9238214/1749888
function respondWithGzip( function respondWithGzip(
contents: string | ReadStream, contents: string | ReadStream,
request: ServerRequest, request: IncomingMessage,
response: ServerResponse, response: ServerResponse,
headers = {}, headers = {},
) { ) {