diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-17 11:28:11 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-17 11:28:11 +0200 |
commit | 154898b0b7bc1af41fc5a94974e338a3590c90f3 (patch) | |
tree | 5fb90f66da7587aed53c99ac1884c7acd0c1f7ca /server/models/user/user-interface.ts | |
parent | df98563e2104b82b119c00a3cd83cd0dc1242d25 (diff) | |
download | PeerTube-154898b0b7bc1af41fc5a94974e338a3590c90f3.tar.gz PeerTube-154898b0b7bc1af41fc5a94974e338a3590c90f3.tar.zst PeerTube-154898b0b7bc1af41fc5a94974e338a3590c90f3.zip |
Share models between server and client
Diffstat (limited to 'server/models/user/user-interface.ts')
-rw-r--r-- | server/models/user/user-interface.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/user/user-interface.ts b/server/models/user/user-interface.ts index fd98a042e..48c67678b 100644 --- a/server/models/user/user-interface.ts +++ b/server/models/user/user-interface.ts | |||
@@ -58,6 +58,10 @@ export interface UserInstance extends UserClass, UserAttributes, Sequelize.Insta | |||
58 | id: number | 58 | id: number |
59 | createdAt: Date | 59 | createdAt: Date |
60 | updatedAt: Date | 60 | updatedAt: Date |
61 | |||
62 | isPasswordMatch: UserMethods.IsPasswordMatch | ||
63 | toFormatedJSON: UserMethods.ToFormatedJSON | ||
64 | isAdmin: UserMethods.IsAdmin | ||
61 | } | 65 | } |
62 | 66 | ||
63 | export interface UserModel extends UserClass, Sequelize.Model<UserInstance, UserAttributes> {} | 67 | export interface UserModel extends UserClass, Sequelize.Model<UserInstance, UserAttributes> {} |