From 4771e0008dd26eadbb7eaff64255a6ec914fdadb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 10 Jul 2017 19:43:21 +0200 Subject: Better typescript typing for a better world --- client/src/app/account/account-details/account-details.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/account/account-details') 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 { UserService, USER_PASSWORD } from '../../shared' +import { UserUpdate } from '../../../../../shared' @Component({ selector: 'my-account-details', @@ -50,7 +51,7 @@ export class AccountDetailsComponent extends FormReactive implements OnInit { updateDetails () { const displayNSFW = this.form.value['displayNSFW'] - const details = { + const details: UserUpdate = { displayNSFW } -- cgit v1.2.3