summary refs log tree commit diff
path: root/src/routes/assets/index.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/routes/assets/index.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/assets/index.ts b/src/routes/assets/index.ts

index c2b9f2b0..df30d13e 100644 --- a/src/routes/assets/index.ts +++ b/src/routes/assets/index.ts
@@ -3,10 +3,10 @@ * (../../client/index.html) */ import { Router } from "express"; -import fetch from "node-fetch"; +import fetch, { Response } from "node-fetch"; -const router = Router(); -const cache = new Map(); +const router: Router = Router(); +const cache = new Map<string, Response>(); const assetEndpoint = "https://discord.com/assets/"; export async function getCache(key: string): Promise<Response> {