Add missing type annotations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-08-02 16:43:33 +02:00
parent f69e40ae9e
commit c2b7e8c53e

View File

@ -8,7 +8,7 @@ import db, { IPackage } from "../db.ts";
import { v4 } from "https://deno.land/std/uuid/mod.ts"; import { v4 } from "https://deno.land/std/uuid/mod.ts";
export default function api(g: ABC.Group) { export default function api(g: ABC.Group) {
const cacheControl = (next) => (ctx) => { const cacheControl = (next: ABC.HandlerFunc) => (ctx: ABC.Context) => {
ctx.response.headers.set("cache-control", "private"); ctx.response.headers.set("cache-control", "private");
next(ctx); next(ctx);
}; };