mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
Update to new ParameterizedContext
This commit is contained in:
Vendored
+3
-3
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user