mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
add rebind-host definitions (#35266)
This commit is contained in:
parent
4bdcc2d058
commit
ef62e5ba7a
10
types/rebind-host/index.d.ts
vendored
Normal file
10
types/rebind-host/index.d.ts
vendored
Normal 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;
|
||||
4
types/rebind-host/rebind-host-tests.ts
Normal file
4
types/rebind-host/rebind-host-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import rebindHost = require("rebind-host");
|
||||
|
||||
rebindHost();
|
||||
rebindHost("forcedhost.com");
|
||||
23
types/rebind-host/tsconfig.json
Normal file
23
types/rebind-host/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/rebind-host/tslint.json
Normal file
1
types/rebind-host/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user