diff --git a/types/node-static/index.d.ts b/types/node-static/index.d.ts index 23e5ba1f87..53b1f4cb07 100644 --- a/types/node-static/index.d.ts +++ b/types/node-static/index.d.ts @@ -42,7 +42,7 @@ export class Server { finish: (status: number, headers: Headers, req: http.ServerRequest, res: http.ServerResponse, promise: events.EventEmitter, callback: Callback) => void; servePath: (pathname: string, status: number, headers: Headers, req: http.ServerRequest, res: http.ServerResponse, finish: Finish) => events.EventEmitter; resolve: (pathname: string) => string; - serve: (req: http.ServerRequest, res: http.ServerResponse, callback: Callback) => events.EventEmitter; + serve: (req: http.ServerRequest, res: http.ServerResponse, callback?: Callback) => events.EventEmitter; gzipOk: (req: http.ServerRequest, contentType: string) => boolean; respondGzip: (pathname: string, status: number, contentType: string, _headers: Headers, files: string[], stat: fs.Stats, req: http.ServerRequest, res: http.ServerResponse, finish: Finish) => void; parseByteRange: (req: http.ServerRequest, stat: fs.Stats) => ByteRange;