Skip to content

Commit

Permalink
Exports interface State for Form
Browse files Browse the repository at this point in the history
  • Loading branch information
kaw2k committed Jul 18, 2018
1 parent 73a702b commit 05e2706
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export interface InternalProps {

export type Props = Partial<InternalProps>

interface State {
export interface State {
errors: Error[]
}

Expand Down Expand Up @@ -313,7 +313,7 @@ export class Form extends React.Component<Props, State> {
return (
<form
{...props}
ref={e => this.form = e}
ref={e => (this.form = e)}
onSubmit={this.onSubmit}
onChange={() => {}}
onReset={this.clear}
Expand Down

0 comments on commit 05e2706

Please sign in to comment.