From 59d40b8ba31b37be2568100ec63fc72071dac15e Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Sun, 14 Feb 2021 12:26:46 +0100 Subject: [PATCH] Installed types and add default export --- src/scripts/classes/session.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/classes/session.ts b/src/scripts/classes/session.ts index 14e9b15..02aa1bc 100644 --- a/src/scripts/classes/session.ts +++ b/src/scripts/classes/session.ts @@ -5,14 +5,14 @@ import * as fs from "fs"; import { promisify } from "util"; // Public modules from npm -import * as md5 from "md5"; +import md5 from "md5"; // Promisifed functions const areadfile = promisify(fs.readFile); const awritefile = promisify(fs.writeFile); const aunlinkfile = promisify(fs.unlink); -export class Session { +export default class Session { //#region Properties /** * Max number of days the session is valid.