inversify-dts
Advanced tools
Comparing version 1.2.0 to 1.3.0
/// <reference path="./inversify-express-utils.d.ts" /> | ||
import { InversifyExpressServer, Controller, Get, All, Delete, Head, Put, Patch, Post, Method } from "inversify-express-utils"; | ||
import { InversifyExpressServer, Controller, Get, All, Delete, Head, Put, Patch, Post, Method, TYPE } from "inversify-express-utils"; | ||
import * as express from "express"; | ||
import { Kernel } from "inversify"; | ||
let kernel = new Kernel(); | ||
module server { | ||
let kernel = new Kernel(); | ||
let server = new InversifyExpressServer(kernel); | ||
@@ -58,2 +60,4 @@ | ||
kernel.bind<Controller>(TYPE.Controller).to(TestController); | ||
function m1(req: express.Request, res: express.Response, next: express.NextFunction) { next(); } | ||
@@ -60,0 +64,0 @@ function m2(req: express.Request, res: express.Response, next: express.NextFunction) { next(); } |
@@ -40,2 +40,6 @@ // Type definitions for inversify 1.0.0-alpha.4 | ||
interface ServiceIdentifiers { | ||
Controller: Symbol; | ||
} | ||
export var InversifyExpressServer: interfaces.InversifyExpressServerConstructor; | ||
@@ -53,3 +57,4 @@ | ||
export var Method: (method: string, path: string, ...middleware: express.RequestHandler[]) => interfaces.HandlerDecorator; | ||
export var TYPE: ServiceIdentifiers; | ||
} |
{ | ||
"name": "inversify-dts", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "The InversifyJS TypeScript type definitions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27751
12
451