diff --git a/types/rebind-host/index.d.ts b/types/rebind-host/index.d.ts new file mode 100644 index 0000000000..7e03965a05 --- /dev/null +++ b/types/rebind-host/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for rebind-host 1.0 +// Project: https://github.com/truffls/node-rebind-host#readme +// Definitions by: Tyler Johnson +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import { Handler } from "express"; + +declare function createRebindHost(forceHost?: string): Handler; +export = createRebindHost; diff --git a/types/rebind-host/rebind-host-tests.ts b/types/rebind-host/rebind-host-tests.ts new file mode 100644 index 0000000000..27115b3672 --- /dev/null +++ b/types/rebind-host/rebind-host-tests.ts @@ -0,0 +1,4 @@ +import rebindHost = require("rebind-host"); + +rebindHost(); +rebindHost("forcedhost.com"); diff --git a/types/rebind-host/tsconfig.json b/types/rebind-host/tsconfig.json new file mode 100644 index 0000000000..d3cc17a5b6 --- /dev/null +++ b/types/rebind-host/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "rebind-host-tests.ts" + ] +} diff --git a/types/rebind-host/tslint.json b/types/rebind-host/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/rebind-host/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }