File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ Form controls in ngrx-forms are represented as plain state objects. Control stat
152152export type FormControlValueTypes = string | number | boolean | null | undefined ;
153153export interface ValidationErrors { [key : string ]: any ; }
154154
155- export class AbstractControlState <TValue > {
155+ export interface AbstractControlState <TValue > {
156156 id: string ;
157157 value: TValue ;
158158 isValid: boolean ;
@@ -168,7 +168,7 @@ export class AbstractControlState<TValue> {
168168 isUnsubmitted: boolean ;
169169}
170170
171- export class FormControlState <TValue extends FormControlValueTypes > extends AbstractControlState <TValue > {
171+ export interface FormControlState <TValue extends FormControlValueTypes > extends AbstractControlState <TValue > {
172172 isFocused: boolean ;
173173 isUnfocused: boolean ;
174174 lastKeyDownCode: number ;
@@ -199,7 +199,7 @@ Groups are collections of controls. Just like controls groups are represented as
199199``` typescript
200200export interface KeyValue { [key : string ]: any ; }
201201export type FormGroupControls <TValue > = {[controlId in keyof TValue ]: AbstractControlState <TValue [controlId ]> };
202- export class FormGroupState <TValue extends KeyValue > extends AbstractControlState <TValue > {
202+ export interface FormGroupState <TValue extends KeyValue > extends AbstractControlState <TValue > {
203203 controls: FormGroupControls <TValue >;
204204}
205205```
You can’t perform that action at this time.
0 commit comments