mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
chore: fix cli ts compiling
This commit is contained in:
parent
ef520eacfa
commit
7df471b69d
|
@ -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 = {},
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user