mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
server-ts: Use unknown for validators
This commit is contained in:
@@ -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[]>;
|
||||
Reference in New Issue
Block a user