about summary refs log tree commit diff stats
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts
index ec1c296..e35368d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -18,7 +18,13 @@ function getFilename(name: string): string {
   return path.join(publicDir, `${name}`);
 }
 
-let files: Map<string, any> = new Map();
+type File = {
+  filename: string;
+  size: number;
+  mtime: string;
+};
+
+let files = new Map<string, File>();
 
 function registerFile(pathname: string, absPath: string, stat: Stats): void {
   pathname = "/" + (pathname === "." || pathname === "./" ? "" : pathname);