Skip to content

Commit

Permalink
added default types
Browse files Browse the repository at this point in the history
  • Loading branch information
iyegoroff committed Feb 3, 2018
1 parent f40b4c8 commit 7cd80ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export type DebounceInputProps<
readonly inputRef?: React.Ref<WrappedComponent>;
};

export declare class DebounceInput<C, P> extends React.PureComponent<DebounceInputProps<C, P>> {
export declare class DebounceInput<
WrappedComponent = HTMLInputElement,
WrappedComponentProps = React.InputHTMLAttributes<HTMLInputElement>
> extends React.PureComponent<DebounceInputProps<WrappedComponent, WrappedComponentProps>> {

}

Expand Down

0 comments on commit 7cd80ed

Please sign in to comment.