Switch to "import * as": more standard way to do

This commit is contained in:
Tanguy Krotoff
2015-12-18 19:49:13 +01:00
parent 4676585cf1
commit 7e47928c4d
5 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
/// <reference path="api-error-handler.d.ts" />
import errorHandler = require('api-error-handler');
import express = require('express');
import * as errorHandler from 'api-error-handler';
import * as express from 'express';
var api = express.Router();
api.get('/users/:userid', function (req, res, next) {
+1 -1
View File
@@ -6,7 +6,7 @@
/// <reference path="../express/express.d.ts" />
declare module 'api-error-handler' {
import express = require('express');
import * as express from 'express';
function apiErrorHandler(options?: any): express.ErrorRequestHandler;