Skip to content

Commit 52f7258

Browse files
committed
add types for explicit usage of multi or single dropdown
1 parent 54ce725 commit 52f7258

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ declare module 'react-native-dropdown-picker' {
326326
) &
327327
DropDownPickerBaseProps<T>;
328328

329+
export type DropDownPickerIsSingleProps<T extends ValueType> =
330+
DropDownPickerSingleProps<T> & DropDownPickerBaseProps<T>;
331+
332+
export type DropDownPickerIsMultipleProps<T extends ValueType> =
333+
DropDownPickerMultipleProps<T> & DropDownPickerBaseProps<T>;
334+
329335
const DropDownPicker: (<T extends ValueType>(
330336
props: PropsWithoutRef<DropDownPickerProps<T>>,
331337
) => ReactElement) &

0 commit comments

Comments
 (0)