add rebind-host definitions (#35266)

This commit is contained in:
Tyler Johnson 2019-05-08 18:31:59 -06:00 committed by Jesse Trinity
parent 4bdcc2d058
commit ef62e5ba7a
4 changed files with 38 additions and 0 deletions

10
types/rebind-host/index.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
// Type definitions for rebind-host 1.0
// Project: https://github.com/truffls/node-rebind-host#readme
// Definitions by: Tyler Johnson <https://github.com/tyler-johnson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import { Handler } from "express";
declare function createRebindHost(forceHost?: string): Handler;
export = createRebindHost;

View File

@ -0,0 +1,4 @@
import rebindHost = require("rebind-host");
rebindHost();
rebindHost("forcedhost.com");

View File

@ -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"
]
}

View File

@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }