From c2b7e8c53e5d4886e6eeec7fe5949a42a38c5497 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sun, 2 Aug 2020 16:43:33 +0200 Subject: [PATCH] Add missing type annotations --- registry/src/http/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/src/http/api.ts b/registry/src/http/api.ts index 4ec9b55..bcaa66f 100644 --- a/registry/src/http/api.ts +++ b/registry/src/http/api.ts @@ -8,7 +8,7 @@ import db, { IPackage } from "../db.ts"; import { v4 } from "https://deno.land/std/uuid/mod.ts"; 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"); next(ctx); };