Merge pull request #10223 from DefinitelyTyped/fixPackages

Fix packages
This commit is contained in:
Andy
2016-08-11 06:12:40 -07:00
committed by GitHub
22 changed files with 44 additions and 26 deletions
+1 -1
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 {
+2
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 {
/**
+1 -1
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 {}
+1 -1
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 {
+1 -1
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 {
+1 -1
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 {
+2
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 {
+2 -1
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 {}
+2 -1
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;
+3 -2
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;
/**
+8 -8
View File
@@ -117,12 +117,12 @@ export interface Module {
};
}
export { default as createHistory } from "history/lib/createBrowserHistory";
export { default as createHashHistory } from "history/lib/createHashHistory";
export { default as createMemoryHistory } from "history/lib/createMemoryHistory";
export { default as createLocation } from "history/lib/createLocation";
export { default as useBasename } from "history/lib/useBasename";
export { default as useBeforeUnload } from "history/lib/useBeforeUnload";
export { default as useQueries } from "history/lib/useQueries";
import * as Actions from "history/lib/actions";
export { default as createHistory } from "./lib/createBrowserHistory";
export { default as createHashHistory } from "./lib/createHashHistory";
export { default as createMemoryHistory } from "./lib/createMemoryHistory";
export { default as createLocation } from "./lib/createLocation";
export { default as useBasename } from "./lib/useBasename";
export { default as useBeforeUnload } from "./lib/useBeforeUnload";
export { default as useQueries } from "./lib/useQueries";
import * as Actions from "./lib/actions";
export { Actions };
+1 -1
View File
@@ -1,2 +1,2 @@
import { HistoryOptions, History } from 'history';
import { HistoryOptions, History } from '../index';
export default function createBrowserHistory(options?: HistoryOptions): History;
+1 -1
View File
@@ -1,2 +1,2 @@
import { HistoryOptions, History } from 'history';
import { HistoryOptions, History } from '../index';
export default function createHashHistory(options?: HistoryOptions): History;
+1 -1
View File
@@ -1,2 +1,2 @@
import { Path, LocationState, Action, LocationKey, Location } from 'history';
import { Path, LocationState, Action, LocationKey, Location } from '../index';
export default function createLocation(path?: Path, state?: LocationState, action?: Action, key?: LocationKey): Location;
+1 -1
View File
@@ -1,2 +1,2 @@
import { HistoryOptions, History } from 'history';
import { HistoryOptions, History } from '../index';
export default function createMemoryHistory(options?: HistoryOptions): History;
+1 -1
View File
@@ -1,2 +1,2 @@
import { CreateHistory } from 'history';
import { CreateHistory } from '../index';
export default function useBasename<T>(createHistory: CreateHistory<T>): CreateHistory<T>;
+1 -1
View File
@@ -1,2 +1,2 @@
import { CreateHistory, HistoryBeforeUnload } from 'history';
import { CreateHistory, HistoryBeforeUnload } from '../index';
export default function useBeforeUnload<T>(createHistory: CreateHistory<T>): CreateHistory<T & HistoryBeforeUnload>;
+1 -1
View File
@@ -1,2 +1,2 @@
import { CreateHistory, HistoryQueries } from 'history';
import { CreateHistory, HistoryQueries } from '../index';
export default function useQueries<T>(createHistory: CreateHistory<T>): CreateHistory<T & HistoryQueries>;
+10 -1
View File
@@ -14,6 +14,15 @@
},
"files": [
"index.d.ts",
"history-tests.ts"
"history-tests.ts",
"lib/actions.d.ts",
"lib/createBrowserHistory.d.ts",
"lib/createHashHistory.d.ts",
"lib/createLocation.d.ts",
"lib/createMemoryHistory.d.ts",
"lib/DOMUtils.d.ts",
"lib/useBasename.d.ts",
"lib/useBeforeUnload.d.ts",
"lib/useQueries.d.ts"
]
}
+1
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 { }
+1
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 { }
+1 -1
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 {