Files
DefinitelyTyped/types/easy-xapi-supertest/index.d.ts
Andy 954ee278de Update TypeScript Versions to be at least as high as dependencies' versions (#21288)
* Update `TypeScript Version`s to be at least as high as dependencies' versions

* Run through again
2017-11-08 09:12:14 -08:00

30 lines
737 B
TypeScript

// Type definitions for easy-x-headers
// Project: https://github.com/DeadAlready/easy-x-headers
// Definitions by: Karl Düüna <https://github.com/DeadAlready>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import express = require('express');
export interface BodyAgent {
send(data: Object): any;
attach(arg1: any, arg2?: any): any;
}
export interface Agent {
get(url: string): any;
delete(url: string): any;
post(url: string): BodyAgent;
patch(url: string): BodyAgent;
put(url: string): BodyAgent;
}
interface getAgent {
(...args: any[]): Agent
}
export declare function getAgentFactory(app: express.Application, transform?: Function): getAgent;