From 2c0657918268248f900028891df1d7f076fdf4eb Mon Sep 17 00:00:00 2001 From: Taso Date: Mon, 18 Jan 2021 12:01:50 -0500 Subject: [PATCH] enhance(phone/types): Improved types for AppWrapper & AppContent --- phone/src/ui/interface/InterfaceUI.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/phone/src/ui/interface/InterfaceUI.ts b/phone/src/ui/interface/InterfaceUI.ts index c2b2933..eb5f670 100644 --- a/phone/src/ui/interface/InterfaceUI.ts +++ b/phone/src/ui/interface/InterfaceUI.ts @@ -1,13 +1,15 @@ +import { CSSProperties } from 'react'; + export interface AppContentTypes { - children: any; - style?: any; - backdrop?: any; - onClickBackdrop?: any; + children?: JSX.Element | JSX.Element[]; + style?: CSSProperties; + backdrop?: boolean; + onClickBackdrop?: (...args: any[]) => void; } export interface AppWrapperTypes { id?: string; - children: any; - style?: any; - handleClickAway?: any; + children?: JSX.Element | JSX.Element[]; + style?: CSSProperties; + handleClickAway?: (...args: any[]) => void; }