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