Skip to content

Commit

Permalink
Fix types in Formsy spec tests (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall authored Feb 17, 2020
1 parent 0eaeef7 commit 954370a
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 171 deletions.
4 changes: 2 additions & 2 deletions __test_utils__/getInput.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { WrapperInstanceMethods } from '../src/Wrapper';
import Formsy from '../src';

export function getInputInstance(inputComponent) {
return inputComponent.instance() as WrapperInstanceMethods;
export function getInputInstance<V>(inputComponent) {
return inputComponent.instance() as WrapperInstanceMethods<V>;
}

export function getFormInstance(formComponent) {
Expand Down
Loading

0 comments on commit 954370a

Please sign in to comment.