react-simple-tooltip
react-simple-tooltip copied to clipboard
Typescript declaration file
Please add a ts decl. file so that I can use this in my ts project,
My project is enterprise and I would like to use this package instead of the over complicated "go to" packages found elsewhere.
Hi, I don't use typescript but PR are welcome if you want you add it.
@forgowhisky Just add this to your index.d.ts:
declare module 'react-simple-tooltip' {
const Tooltip: React.FC<{
arrow?: number, // 8
background?: string, // "#000"
border?: string, // "#000"
color?: string, // "#fff"
content: any, // -
customCss?: any, // -
fadeDuration?: number, // 0
fadeEasing?: string, // "linear"
fixed?: boolean, // false
fontFamily?: boolean, // "inherit"
fontSize?: boolean, // "inherit"
padding?: number, // 16
placement?: "left" | "top" | "right" | "bottom", // "top"
radius?: number, // 0
zIndex?: number, // 1
}>
export = Tooltip
}
Can someone open a PR to add it? Thanks