UNPKG
@pansy/react-mapbox-gl
Version:
beta (1.0.0-beta.5)
latest (1.9.0)
1.9.0
1.8.1
1.8.0
1.7.1
1.7.0
1.6.0
1.5.0
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
1.0.0-beta.5
1.0.0-beta.4
1.0.0-beta.3
1.0.0-beta.2
1.0.0-beta.1
🌍 基于 Mapbox GL 封装的 React 组件库
github.com/pansyjs/react-mapbox-gl
pansyjs/react-mapbox-gl
@pansy/react-mapbox-gl
/
lib
/
hooks
/
useEvents.d.ts
6 lines
(5 loc)
•
239 B
TypeScript
View Raw
1
2
3
4
5
6
import
type
{
Instance
}
from
'../types'
;
export
declare
const
useEvents
: <
Ins
extends
Instance
,
Props
extends
Record
<
string
,
any
>>
(
ins
:
Ins
,
props
:
Props
,
options
: { eventMap: Record<
string
,
any
>; eventList:
string
[]; }
) =>
void
;