diff --git a/index.d.ts b/index.d.ts index 4887072..990ed47 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import * as express from 'express'; import * as http from 'http'; -declare function ExpressHttpProxy(host: string, options: ExpressHttpProxy.IOptions): express.RequestHandler; +declare function ExpressHttpProxy(host: string, options?: ExpressHttpProxy.IOptions): express.RequestHandler; declare namespace ExpressHttpProxy { interface IOptions { port?: number; diff --git a/package.json b/package.json index ad66092..c6a0a20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { - "version": "", + "version": "0.2.0", "private": true, + "name": "@types/express-http-proxy", "scripts": { "build": "echo building... && typings bundle -o out", "lint": "echo linting... && tslint \"**/*.ts\" -e \"source/**\" -e \"source-test/**\" -e \"out/**\" -e \"node_modules/**\" -e \"typings/**\"",