UNPKG

@sinchsmb/ui-kit

Version:

UI kit for SinchSMB frontend

4 lines (3 loc) 348 B
import { MemoExoticComponent, ReactElement, ReactNode } from 'react'; /** Return `true` if given child is give React element */ export declare function isElement<P>(child: Exclude<ReactNode, boolean | null | undefined>, element: ((props: P) => JSX.Element | null) | MemoExoticComponent<(props: P) => JSX.Element | null>): child is ReactElement<P>;