diff options
Diffstat (limited to 'server/helpers/custom-validators/users.ts')
-rw-r--r-- | server/helpers/custom-validators/users.ts | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts index 750563ada..2b37bdde8 100644 --- a/server/helpers/custom-validators/users.ts +++ b/server/helpers/custom-validators/users.ts | |||
@@ -34,13 +34,11 @@ export { | |||
34 | isUserDisplayNSFWValid | 34 | isUserDisplayNSFWValid |
35 | } | 35 | } |
36 | 36 | ||
37 | declare global { | 37 | declare module 'express-validator' { |
38 | namespace ExpressValidator { | 38 | export interface Validator { |
39 | export interface Validator { | 39 | isUserPasswordValid, |
40 | isUserPasswordValid, | 40 | isUserRoleValid, |
41 | isUserRoleValid, | 41 | isUserUsernameValid, |
42 | isUserUsernameValid, | 42 | isUserDisplayNSFWValid |
43 | isUserDisplayNSFWValid | ||
44 | } | ||
45 | } | 43 | } |
46 | } | 44 | } |