mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
react-native-dialog: Make container's modal props optional
The tests use them in a way that indicates they are not required, so I added Partial around reactNativeModal.ModalProps. This probably resulted from a recent update to react-native-modal.
This commit is contained in:
2
types/react-native-dialog/index.d.ts
vendored
2
types/react-native-dialog/index.d.ts
vendored
@@ -61,7 +61,7 @@ interface DescriptionProps {
|
||||
children: string;
|
||||
}
|
||||
|
||||
type reactNativeModalContainerProps = Pick<reactNativeModal.ModalProps, Exclude<keyof reactNativeModal.ModalProps, "isVisible">>;
|
||||
type reactNativeModalContainerProps = Partial<Pick<reactNativeModal.ModalProps, Exclude<keyof reactNativeModal.ModalProps, "isVisible">>>;
|
||||
|
||||
export namespace Dialog {
|
||||
class Button extends PureComponent<
|
||||
|
||||
Reference in New Issue
Block a user