/// export type ComponentOrJSX = React.FunctionComponent | React.ReactElement; export type WithRef = I & { ref?: React.ForwardedRef; }; /** * custom Map interface to get rid of implicit "possibly undefined value" from Map * See: https://github.com/microsoft/TypeScript/issues/9619 */ export interface IMap extends Map { get(key: K): V; } export type CSSUnit = "em" | "ex" | "ch" | "rem" | "vw" | "vh" | "vmin" | "vmax" | "cm" | "mm" | "in" | "px" | "pt" | "pc" | "%";