Files
DefinitelyTyped/koa-send/index.d.ts
Peter Safranek dc33fb1259 [types-2.0] Add type definitions for koa-send. (#11946)
* Add type definitions for koa-send.

* Use correct file name and add tsconfig.
2016-10-25 22:11:17 +09:00

23 lines
554 B
TypeScript

// Type definitions for koa-send v3.x
// Project: https://github.com/koajs/send
// Definitions by: Peter Safranek <https://github.com/pe8ter>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as Koa from 'koa';
interface ISendOptions {
root?: string;
index?: string;
maxAge?: number;
hidden?: boolean;
format?: boolean;
gzip?: boolean;
setHeaders?: Function;
}
declare function send(ctx: Koa.Context, path: string, opts?: ISendOptions): Promise<string>;
declare namespace send {}
export = send;