Skip to content

Commit a2fa269

Browse files
committed
chore: fix typo in README
1 parent a4225b3 commit a2fa269

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Form controls in ngrx-forms are represented as plain state objects. Control stat
152152
export type FormControlValueTypes = string | number | boolean | null | undefined;
153153
export 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
200200
export interface KeyValue { [key: string]: any; }
201201
export 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
```

0 commit comments

Comments
 (0)