Changeset View
Changeset View
Standalone View
Standalone View
src/app/_models/account.ts
Show All 15 Lines | export class Account { | ||||
getError(): AccountError { | getError(): AccountError { | ||||
return null; | return null; | ||||
} | } | ||||
} | } | ||||
export class AccountError extends Account { | export class AccountError extends Account { | ||||
constructor( | constructor( | ||||
public non_field_errors?: string[], | public non_field_errors?: string[], | ||||
public _text?: string[] | public text?: string[] | ||||
) { | ) { | ||||
super(null, null, null); | super(null, null, null); | ||||
} | } | ||||
getError(): AccountError { | getError(): AccountError { | ||||
return this; | return this; | ||||
} | } | ||||
} | } |