Skip to content

Commit

Permalink
fixed type definition for submit listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Schroter committed Jun 25, 2017
1 parent 653f080 commit fcc2f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-provider",
"version": "1.0.7",
"version": "1.0.8",
"description": "React helpers for building forms.",
"author": "Jordan Schroter",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/formEnhancer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface Validator {
fn: ValidatorFn
}

export type SubmitListenerFn = (formState: FormState) => Promise<any>
export type SubmitListenerFn = (formState: FormState) => any

export interface SubmitListener {
listener: SubmitListenerFn
Expand Down

0 comments on commit fcc2f55

Please sign in to comment.