server-ts: Use unknown for validators

This commit is contained in:
Elian Doran
2024-04-18 21:26:29 +03:00
parent c814187a25
commit 15168fb213
2 changed files with 12 additions and 14 deletions

View File

@@ -1,5 +1,3 @@
type ValidatorArg = object | string | undefined | null;
type ValidatorFunc = (obj: ValidatorArg) => (string | undefined);
type ValidatorFunc = (obj: unknown) => (string | undefined);
type ValidatorMap = Record<string, ValidatorFunc[]>;