diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-10 19:43:21 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-10 19:43:21 +0200 |
commit | 4771e0008dd26eadbb7eaff64255a6ec914fdadb (patch) | |
tree | 4fd58f8a3f3c2d674b936c99817b4f5fb958c5d8 /client/src/app/account/account-details/account-details.component.ts | |
parent | 7a214f746bf420defbf17fa218d90d6233551bf8 (diff) | |
download | PeerTube-4771e0008dd26eadbb7eaff64255a6ec914fdadb.tar.gz PeerTube-4771e0008dd26eadbb7eaff64255a6ec914fdadb.tar.zst PeerTube-4771e0008dd26eadbb7eaff64255a6ec914fdadb.zip |
Better typescript typing for a better world
Diffstat (limited to 'client/src/app/account/account-details/account-details.component.ts')
-rw-r--r-- | client/src/app/account/account-details/account-details.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/account/account-details/account-details.component.ts b/client/src/app/account/account-details/account-details.component.ts index d7531cb55..547f045c4 100644 --- a/client/src/app/account/account-details/account-details.component.ts +++ b/client/src/app/account/account-details/account-details.component.ts | |||
@@ -11,6 +11,7 @@ import { | |||
11 | UserService, | 11 | UserService, |
12 | USER_PASSWORD | 12 | USER_PASSWORD |
13 | } from '../../shared' | 13 | } from '../../shared' |
14 | import { UserUpdate } from '../../../../../shared' | ||
14 | 15 | ||
15 | @Component({ | 16 | @Component({ |
16 | selector: 'my-account-details', | 17 | selector: 'my-account-details', |
@@ -50,7 +51,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { | |||
50 | 51 | ||
51 | updateDetails () { | 52 | updateDetails () { |
52 | const displayNSFW = this.form.value['displayNSFW'] | 53 | const displayNSFW = this.form.value['displayNSFW'] |
53 | const details = { | 54 | const details: UserUpdate = { |
54 | displayNSFW | 55 | displayNSFW |
55 | } | 56 | } |
56 | 57 | ||