Skip to content

Instantly share code, notes, and snippets.

@masahirompp
Created October 13, 2017 01:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masahirompp/df3515dd5a8abfe5f6bbd451cbb6e437 to your computer and use it in GitHub Desktop.
Save masahirompp/df3515dd5a8abfe5f6bbd451cbb6e437 to your computer and use it in GitHub Desktop.
/// <reference types="react" />
declare module 'react-popover' {
type Falsey = false | null | undefined
type Place = 'above' | 'right' | 'below' | 'left' | 'row' | 'column' | 'start' | 'end'
export interface PopoverProps extends React.HTMLAttributes<any> {
body: React.ReactNode | React.ReactNode[]
enterExitTransitionDurationMs?: number
isOpen?: boolean
offset?: number
place?: Place | null
preferPlace?: Place | null
refreshIntervalMs?: number | Falsey
tipSize?: number
onOuterAction?: Function
target?: HTMLElement
appendTarget?: HTMLElement
}
export default class extends React.Component<PopoverProps, {}> {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment