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