Unwrap all lone ambient external modules

This commit is contained in:
Ryan Cavanaugh
2016-04-22 14:12:45 -07:00
parent fa7a5ddc9b
commit 4a433abbf4
616 changed files with 74328 additions and 75201 deletions

View File

@@ -5,22 +5,21 @@
/// <reference path="../express/express.d.ts" />
declare module "express-unless" {
import express = require('express');
function unless(options:unless.Options): express.RequestHandler;
import express = require('express');
namespace unless {
export interface Options {
custom?: (req: express.Request) => boolean;
path?: any; // TODO: union type 'string|string[]' is not supported yet
ext?: any; // TODO: union type 'string|string[]' is not supported yet
method?: any; // TODO: union type 'string|string[]' is not supported yet
}
export interface RequestHandler extends express.RequestHandler {
unless?: typeof unless;
}
declare function unless(options: unless.Options): express.RequestHandler;
declare namespace unless {
export interface Options {
custom?: (req: express.Request) => boolean;
path?: any; // TODO: union type 'string|string[]' is not supported yet
ext?: any; // TODO: union type 'string|string[]' is not supported yet
method?: any; // TODO: union type 'string|string[]' is not supported yet
}
export interface RequestHandler extends express.RequestHandler {
unless?: typeof unless;
}
export = unless;
}
export = unless;