diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 00000000..af5adff9 --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +lint-staged \ No newline at end of file diff --git a/examples/form.tsx b/examples/form.tsx index 0ab0ebd7..17464cd5 100644 --- a/examples/form.tsx +++ b/examples/form.tsx @@ -21,7 +21,7 @@ const errorStyle = { }; class TreeSelectInput extends Component<{ - onChange?: Function; + onChange?: (value: string[]) => void; style: React.CSSProperties; }> { onChange = (value, ...args) => { @@ -105,11 +105,7 @@ const Demo = () => { > {(control, { errors }) => (
{errors.join(',')}