make optional, since they have a default value

This commit is contained in:
Pavlos Vinieratos
2018-11-23 12:31:17 +01:00
parent 90c693faf2
commit b4dee98a6c
+2 -2
View File
@@ -43,6 +43,6 @@ export type Direction =
export function withSafeArea(
WrappedComponent: React.ComponentType<any>,
applyTo: 'margin' | 'padding' | 'absolutePosition' | 'contentInset',
direction: Direction,
applyTo?: 'margin' | 'padding' | 'absolutePosition' | 'contentInset',
direction?: Direction,
): React.ComponentType<any>;