mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
30 lines
849 B
TypeScript
30 lines
849 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
|
|
|
|
/// <reference path="../express/express.d.ts" />
|
|
|
|
declare module "easy-xapi-supertest" {
|
|
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 function getAgentFactory(app: express.Application, transform?: Function): getAgent;
|
|
}
|