Update to new ParameterizedContext

This commit is contained in:
Ulrik Strid
2019-02-18 15:13:54 +01:00
committed by GitHub
parent 8a8fe2ba56
commit 5da9f8e325
+3 -3
View File
@@ -6,17 +6,17 @@
// TypeScript Version: 2.3
import {
Context,
ParameterizedContext,
} from "koa";
import {
Stats,
} from "fs";
declare function send(ctx: Context, path: string, opts?: send.SendOptions): Promise<string>;
declare function send(ctx: ParameterizedContext, path: string, opts?: send.SendOptions): Promise<string>;
declare namespace send {
type SetHeaders = (res: Context["res"], path: string, stats: Stats) => any;
type SetHeaders = (res: ParameterizedContext["res"], path: string, stats: Stats) => any;
interface SendOptions {
/** Browser cache max-age in milliseconds. (defaults to 0) */