UNPKG

@h4wldev/react-naver-maps

Version:

React Navermaps API integration for modern development.

14 lines (11 loc) 501 B
import { FunctionComponent } from 'react'; import { AllowedKey } from './types/utils.js'; declare function useListener(target: any, type: string, listener: (...args: any[]) => void): void; interface Props { target?: any; type: string; listener: (...args: any[]) => any; } declare const Listener: FunctionComponent<Props>; declare function getListenerKeys<P extends Record<string, any>>(props: P): AllowedKey<P, `on${string}`>[]; export { Listener, Props, getListenerKeys, useListener };