Skip to content

Commit adf1b5a

Browse files
authored
Merge pull request #103 from cubiio/feat/add-type-for-placeholder
Adds type for placeholder input
2 parents 6f59e0d + cc8995f commit adf1b5a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* check usage examples in ./example/typescript-example.tsx
2+
* check usage examples in ./example/typescript-example.tsx
33
*/
44

55
import * as React from 'react';
@@ -16,6 +16,7 @@ export type DebounceInputProps<WrappedComponent, WrappedComponentProps> = Wrappe
1616
readonly onKeyDown?: React.KeyboardEventHandler<WrappedComponent>;
1717
readonly onBlur?: React.FocusEventHandler<WrappedComponent>;
1818
readonly value?: string | number;
19+
readonly placeholder?: string | number;
1920
readonly minLength?: number;
2021
readonly debounceTimeout?: number;
2122
readonly forceNotifyByEnter?: boolean;

0 commit comments

Comments
 (0)