mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
add rebind-host definitions (#35266)
This commit is contained in:
committed by
Jesse Trinity
parent
4bdcc2d058
commit
ef62e5ba7a
Vendored
+10
@@ -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;
|
||||
@@ -0,0 +1,4 @@
|
||||
import rebindHost = require("rebind-host");
|
||||
|
||||
rebindHost();
|
||||
rebindHost("forcedhost.com");
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user