We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2531fe0 commit 91fd859Copy full SHA for 91fd859
typings/index.d.ts
@@ -5,7 +5,10 @@
5
6
import * as React from "react";
7
import { ViewStyle, TextStyle } from "react-native";
8
-import { ModalProps as ReactNativeModalProps } from "react-native-modal";
+import { ModalProps } from "react-native-modal";
9
+
10
+type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
11
+type ReactNativeModalProps = Omit<ModalProps, "children" | "isVisible">;
12
13
interface DateTimePickerProps {
14
/**
@@ -232,4 +235,4 @@ interface DateTimePickerProps {
232
235
export default class DateTimePicker extends React.Component<
233
236
DateTimePickerProps,
234
237
any
-> {}
238
+ > { }
0 commit comments