Remove circular dependency

express.d.ts and serve-static.d.ts had a circular dependency, which causes NuGet pain.
Extract core definitions from express.d.ts and move them to express-serve-static-core.d.ts
Update serve-static.d.ts to depend on express-serve-static-core.d.ts
This commit is contained in:
David Gardiner
2016-02-19 10:05:49 +10:30
parent 99c4fb76b5
commit 40191cf78c
5 changed files with 1100 additions and 1058 deletions
@@ -0,0 +1,5 @@
/// <reference path="express-serve-static-core.d.ts" />
import * as express from 'express-serve-static-core';
// null test file - everything should be tested from express.d.ts and serve-static.d.ts
File diff suppressed because it is too large Load Diff
+29 -1056
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -1,4 +1,5 @@
/// <reference path="serve-static.d.ts" />
/// <reference path="../express/express.d.ts" />
import * as express from 'express';
import * as serveStatic from 'serve-static';
+2 -2
View File
@@ -10,11 +10,11 @@
=============================================== */
/// <reference path="../express/express.d.ts" />
/// <reference path="../express-serve-static-core/express-serve-static-core.d.ts" />
/// <reference path="../mime/mime.d.ts" />
declare module "serve-static" {
import * as express from "express";
import * as express from "express-serve-static-core";
/**
* Create a new middleware function to serve files from within a given root directory.