From e403e9858dfc2dce700a2dce010ee55f5e82d831 Mon Sep 17 00:00:00 2001 From: baldo Date: Tue, 23 Aug 2022 15:14:52 +0200 Subject: [PATCH] Minor cleanup. --- server/shared/utils/strings.ts | 2 +- server/shared/validation/constraints.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/server/shared/utils/strings.ts b/server/shared/utils/strings.ts index f41bf9f..b1fb991 100644 --- a/server/shared/utils/strings.ts +++ b/server/shared/utils/strings.ts @@ -1,4 +1,4 @@ -import {isString, MAC} from "../types"; +import {isString, type MAC} from "../types"; export function normalizeString(str: string): string { return isString(str) ? str.trim().replace(/\s+/g, ' ') : str; diff --git a/server/shared/validation/constraints.ts b/server/shared/validation/constraints.ts index 83604c6..ce0ad40 100644 --- a/server/shared/validation/constraints.ts +++ b/server/shared/validation/constraints.ts @@ -115,6 +115,3 @@ const CONSTRAINTS = { }; export default CONSTRAINTS; - -// TODO: Remove after refactoring. -module.exports = CONSTRAINTS;