Skip to content

Commit

Permalink
refactor: replace typings for formControll property
Browse files Browse the repository at this point in the history
BREAKING CHANGE: replaced formControl with Abstract control typings within formConnector
  • Loading branch information
makarov-roman committed Sep 24, 2018
1 parent ec41636 commit 060749f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ControlValueAccessor.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { FormControl } from './index'
import { AbstractControl } from './index'

export interface IControlValueAccessor {
/**
* Form Control instance itself
*/
formControl: FormControl
formControl: AbstractControl

/**
* Registers a callback function that should be called when the control's value
Expand Down
4 changes: 2 additions & 2 deletions src/connectForm.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';
import {IControlValueAccessor} from './ControlValueAccessor'
import {FormControl} from './index'
import {AbstractControl} from './index'

interface IExternal {
formControl: FormControl
formControl: AbstractControl
}

type Injected = IControlValueAccessor
Expand Down

0 comments on commit 060749f

Please sign in to comment.