diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 17:35:32 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-11 17:35:32 +0200 |
commit | 127944aacb52721877449a1f202dc0add866ef39 (patch) | |
tree | 73ac935c7dfc73dca92d15ed52266e40ba9af57a /server/models/user.ts | |
parent | 294f80f21e8a77d25f6fb5f0f26887fb4618ee2e (diff) | |
download | PeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.gz PeerTube-127944aacb52721877449a1f202dc0add866ef39.tar.zst PeerTube-127944aacb52721877449a1f202dc0add866ef39.zip |
Better models define typing
Diffstat (limited to 'server/models/user.ts')
-rw-r--r-- | server/models/user.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/user.ts b/server/models/user.ts index cd383a16a..1a56a6dc3 100644 --- a/server/models/user.ts +++ b/server/models/user.ts | |||
@@ -32,8 +32,8 @@ let loadById: UserMethods.LoadById | |||
32 | let loadByUsername: UserMethods.LoadByUsername | 32 | let loadByUsername: UserMethods.LoadByUsername |
33 | let loadByUsernameOrEmail: UserMethods.LoadByUsernameOrEmail | 33 | let loadByUsernameOrEmail: UserMethods.LoadByUsernameOrEmail |
34 | 34 | ||
35 | export default function (sequelize, DataTypes) { | 35 | export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) { |
36 | User = sequelize.define('User', | 36 | User = sequelize.define<UserInstance, UserAttributes>('User', |
37 | { | 37 | { |
38 | password: { | 38 | password: { |
39 | type: DataTypes.STRING, | 39 | type: DataTypes.STRING, |