control-freak-ide/server/nodejs/lib/typings/modules/koa-send/index.d.ts
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

27 lines
730 B
TypeScript

// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/dc33fb125911b1bd0d8dba59e17d249c6d0af6ec/koa-send/index.d.ts
declare module 'koa-send' {
// 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;
}
function send(ctx: Koa.Context, path: string, opts?: ISendOptions): Promise<string>;
namespace send {}
export = send;
}