// Type definitions for easy-jsend // Project: https://github.com/DeadAlready/easy-jsend // Definitions by: Karl Düüna // Definitions: https://github.com/borisyankov/DefinitelyTyped /// declare module Express { interface MakePartialInput { model:any; opts: { limit: number; skip: number; }; search: Object; result: any; } interface PartialInput { limit?: number; offset: number; count: number; data: any; } export interface Response { success (data?: any, status?: number): void; fail (data: any, status?: number): void; error (err: any, status?: number): void; partial? (data: PartialInput, status?: number): void; makePartial? (data: MakePartialInput): void; } } declare module "easy-jsend" { export function init(conf?:{partial:boolean}): void; }