diff --git a/types/restify/index.d.ts b/types/restify/index.d.ts index 42b0a1573b..68193a9b85 100644 --- a/types/restify/index.d.ts +++ b/types/restify/index.d.ts @@ -8,16 +8,13 @@ // TypeScript Version: 2.2 /// - import http = require('http'); import https = require('https'); -import http2 = require('http2'); import Logger = require('bunyan'); import url = require('url'); import spdy = require('spdy'); import stream = require('stream'); -import { Certificate } from 'crypto'; -import { ZlibOptions } from 'zlib'; +import zlib = require('zlib'); export interface ServerOptions { ca?: string | Buffer | ReadonlyArray; @@ -62,7 +59,7 @@ export interface ServerOptions { secureOptions?: number; - http2?: http2.SecureServerOptions; + http2?: any; dtrace?: boolean; @@ -247,7 +244,7 @@ export interface Server extends http.Server { url: string; /** Node server instance */ - server: http.Server | https.Server | spdy.Server | http2.Http2SecureServer; + server: http.Server | https.Server | spdy.Server; /** Router instance */ router: Router; @@ -1373,7 +1370,7 @@ export namespace plugins { * gzips the response if client send `accept-encoding: gzip` * @param options options to pass to gzlib */ - function gzipResponse(options?: ZlibOptions): RequestHandler; + function gzipResponse(options?: zlib.ZlibOptions): RequestHandler; interface InflightRequestThrottleOptions { limit: number;