mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 09:25:50 +08:00
Unwrap all lone ambient external modules
This commit is contained in:
29
express-unless/express-unless.d.ts
vendored
29
express-unless/express-unless.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user