Add missing express dependencies

This commit is contained in:
Mohamed Hegazy
2016-07-21 10:43:08 -07:00
parent 17b185f0a1
commit be3445bb83
13 changed files with 19 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
// Definitions by: Andreas Gassmann <https://github.com/AndreasGassmann/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
export interface Request {

View File

@@ -3,6 +3,8 @@
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
export interface Request {
/**

View File

@@ -3,7 +3,7 @@
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
interface Request extends CookieSessionInterfaces.CookieSessionRequest {}

2
csurf/index.d.ts vendored
View File

@@ -3,7 +3,7 @@
// Definitions by: Hiroki Horiuchi <https://github.com/horiuchi/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
export interface Request {

View File

@@ -3,7 +3,7 @@
// Definitions by: Karl Düüna <https://github.com/DeadAlready/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
interface ErrorCallback {

View File

@@ -3,7 +3,7 @@
// Definitions by: Karl Düüna <https://github.com/DeadAlready/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
export interface Request {

View File

@@ -6,6 +6,8 @@
/// <reference types="easy-jsend" />
/// <reference types="bunyan" />
/// <reference types="express" />
/// <reference types="node" />
declare namespace Express {
export interface Request {

View File

@@ -3,7 +3,8 @@
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
/// <reference types="node" />
declare namespace Express {
interface Response extends ExpressMinifyInterfaces.ExpressMinifyResponse {}

View File

@@ -5,6 +5,7 @@
/// <reference types="node" />
/// <reference types="express" />
declare namespace Express {
@@ -69,7 +70,7 @@ declare module "express-session" {
regenerate (req: express.Request, fn: (err: any) => any): void;
load (sid: string, fn: (err: any, session: Express.Session) => any): void;
createSession (req: express.Request, sess: Express.Session): void;
get: (sid: string, callback: (err: any, session: Express.Session) => void) => void;
set: (sid: string, session: Express.Session, callback: (err: any) => void) => void;
destroy: (sid: string, callback: (err: any) => void) => void;

View File

@@ -3,6 +3,7 @@
// Definitions by: Nathan Ridley <https://github.com/axefrog/>, Jonathan Häberle <http://dreampulse.de>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
// Add RequestValidation Interface on to Express's Request Interface.
@@ -179,12 +180,12 @@ declare namespace ExpressValidator {
/**
* Decode HTML entities
*/
/**
* Convert the input string to a date, or null if the input is not a date.
*/
toDate(): Sanitizer;
entityDecode(): Sanitizer;
entityEncode(): Sanitizer;
/**

View File

@@ -4,6 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="i18next"/>
/// <reference types="express" />
declare namespace I18next {
interface I18nextStatic extends i18nextBrowserLanguageDetector.I18nextStatic { }

View File

@@ -4,6 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="i18next" />
/// <reference types="express" />
declare namespace I18next {
interface I18nextOptions extends i18nextExpressMiddleware.I18nextOptions { }

2
passport/index.d.ts vendored
View File

@@ -3,7 +3,7 @@
// Definitions by: Horiuchi_H <https://github.com/horiuchi/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="express" />
declare namespace Express {
export interface Request {