1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

require -> import

This commit is contained in:
Chocobozzz 2017-06-05 21:53:49 +02:00
parent e02643f32e
commit 4d4e5cd4dc
33 changed files with 66 additions and 67 deletions

View file

@ -1,7 +1,5 @@
import { values } from 'lodash'
import expressValidator = require('express-validator')
// TODO: use .validator when express-validator typing will have validator field
const validator = expressValidator['validator']
import * as validator from 'validator'
import { CONSTRAINTS_FIELDS, USER_ROLES } from '../../initializers'
const USERS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.USERS