Skip to content

Commit b38d3e1

Browse files
committed
these new parameters, they should be optional
1 parent 6aedcd7 commit b38d3e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/FormControl.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export interface FormControlProps extends React.Props<FormControlClass> {
1010
name?: string;
1111
value?: string | number;
1212
placeholder?: string;
13-
onChange: Function;
14-
onKeyPress: Function;
13+
onChange?: Function;
14+
onKeyPress?: Function;
1515
}
1616
export interface FormControl extends React.ReactElement<FormControlProps> {}
1717
export interface FormControlClass extends React.ComponentClass<FormControlProps> {

src/FormGroup.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React = require("react");
55
// ----------------------------------------
66
export interface FormGroupProps extends React.Props<FormGroupClass> {
77
controlId: string;
8-
validationState: string;
8+
validationState?: string;
99
}
1010
export interface FormGroup extends React.ReactElement<FormGroupProps> {}
1111
export interface FormGroupClass extends React.ComponentClass<FormGroupProps> {}

0 commit comments

Comments
 (0)